X-Git-Url: http://nitlanguage.org diff --git a/src/parser/parser.nit b/src/parser/parser.nit index 1a7fbf4..4f8bbd5 100644 --- a/src/parser/parser.nit +++ b/src/parser/parser.nit @@ -1474,11 +1474,9 @@ private class ComputeProdLocationVisitor # Location of the last visited token in the current production var _last_location: nullable Location = null - redef fun visit(n: nullable ANode) + redef fun visit(n: ANode) do - if n == null then - return - else if n isa Token then + if n isa Token then var loc = n.location _last_location = loc