nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
parser: do not lose location in case of replacement
[nit.git]
/
src
/
parser
/
parser_nodes.nit
diff --git
a/src/parser/parser_nodes.nit
b/src/parser/parser_nodes.nit
index
47a74a3
..
bb273c9
100644
(file)
--- a/
src/parser/parser_nodes.nit
+++ b/
src/parser/parser_nodes.nit
@@
-103,7
+103,7
@@
abstract class Prod
do
super
assert n isa Prod
- n.location = location
+ if n._location == null then n._location = _location
end
end