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
/
test_parser.nit
diff --git
a/src/test_parser.nit
b/src/test_parser.nit
index
f19857d
..
78f5799
100644
(file)
--- a/
src/test_parser.nit
+++ b/
src/test_parser.nit
@@
-22,9
+22,8
@@
import parser
class PrintTreeVisitor
super Visitor
var _rank: Int
class PrintTreeVisitor
super Visitor
var _rank: Int
- redef fun visit(n: nullable ANode)
+ redef fun visit(n)
do
do
- if n == null then return
if n isa Token then
printn(" " * _rank, n.to_s, " ... ", n.location, "\n")
else
if n isa Token then
printn(" " * _rank, n.to_s, " ... ", n.location, "\n")
else