From: Jean Privat Date: Wed, 3 Jun 2015 00:41:13 +0000 (-0400) Subject: parser: the parent of EOF is Start X-Git-Tag: v0.7.6~67^2~1 X-Git-Url: http://nitlanguage.org parser: the parent of EOF is Start Signed-off-by: Jean Privat --- diff --git a/src/parser/parser_work.nit b/src/parser/parser_work.nit index 363faf4..86f44e7 100644 --- a/src/parser/parser_work.nit +++ b/src/parser/parser_work.nit @@ -141,6 +141,7 @@ class Parser var node1 = pop assert node1 isa AModule var node = new Start(node1, node2) + node2.parent = node (new ComputeProdLocationVisitor).enter_visit(node) return node else if action_type == 3 then # ERROR