nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
parser: `Visitor::visit` does not accepts `null`
[nit.git]
/
src
/
parser
/
xss
/
parser.xss
diff --git
a/src/parser/xss/parser.xss
b/src/parser/xss/parser.xss
index
a461563
..
e2fabc5
100644
(file)
--- a/
src/parser/xss/parser.xss
+++ b/
src/parser/xss/parser.xss
@@
-197,11
+197,9
@@
private class ComputeProdLocationVisitor
# Location of the last visited token in the current production
var _last_location: nullable Location = null
# Location of the last visited token in the current production
var _last_location: nullable Location = null
- redef fun visit(n: nullable PNode)
+ redef fun visit(n: PNode)
do
do
- if n == null then
- return
- else if n isa Token then
+ if n isa Token then
var loc = n.location
_last_location = loc
var loc = n.location
_last_location = loc