nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
parser: compute location for all nodes
[nit.git]
/
src
/
parser
/
xss
/
nodes.xss
diff --git
a/src/parser/xss/nodes.xss
b/src/parser/xss/nodes.xss
index
6d43485
..
9cd1919
100644
(file)
--- a/
src/parser/xss/nodes.xss
+++ b/
src/parser/xss/nodes.xss
@@
-71,18
+71,10
@@
redef class Token
end
redef class Prod
end
redef class Prod
- # The first token of the production node
- readable writable var _first_token: nullable Token
-
- # The last token of the production node
- readable writable var _last_token: nullable Token
-
redef fun replace_with(n: PNode)
do
super
assert n isa Prod
redef fun replace_with(n: PNode)
do
super
assert n isa Prod
- n.first_token = first_token
- n.last_token = last_token
n.location = location
end
end
n.location = location
end
end