nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efabdb3
)
src/astprinter: fixes useless null comparison
author
Alexandre Terrasa
<alexandre@moz-code.org>
Fri, 12 Dec 2014 20:58:31 +0000
(15:58 -0500)
committer
Alexandre Terrasa
<alexandre@moz-code.org>
Fri, 12 Dec 2014 20:58:31 +0000
(15:58 -0500)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
src/astprinter.nit
patch
|
blob
|
history
diff --git
a/src/astprinter.nit
b/src/astprinter.nit
index
219b61a
..
1a4d804
100644
(file)
--- a/
src/astprinter.nit
+++ b/
src/astprinter.nit
@@
-47,15
+47,6
@@
private class ASTPrinterVisitor
do
if last_current != current_node then
last_current = current_node
- var l = current_node._location
- if l != null then
- eol
- out.add(s)
- out.add("\t# {l.colored_line("0;32").split_with('\n').first}")
- has_eol = false
- eol
- return
- end
end
out.add(s)
has_eol = false