nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
parser: remove warning about useless cast
[nit.git]
/
src
/
parser
/
xss
/
lexer.xss
diff --git
a/src/parser/xss/lexer.xss
b/src/parser/xss/lexer.xss
index
a8fa706
..
2eb31da
100644
(file)
--- a/
src/parser/xss/lexer.xss
+++ b/
src/parser/xss/lexer.xss
@@
-86,7
+86,7
@@
$ end foreach
result = get_token
end
_token = null
result = get_token
end
_token = null
- return result.as(not null)
+ return result
end
# Get a token, or null if it is discarded
end
# Get a token, or null if it is discarded
@@
-215,9
+215,7
@@
$ end foreach
end
end
end
end
end
end
- if false then break # FIXME remove once unreach loop exits are in c_src
end
end
- return null # FIXME remove once unreach loop exits are in c_src
end
# Read the next character.
end
# Read the next character.