nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c0ee9b
)
transform: skip transformation of broken expr
author
Jean Privat
<jean@pryen.org>
Thu, 4 Jun 2015 02:34:24 +0000
(22:34 -0400)
committer
Jean Privat
<jean@pryen.org>
Fri, 5 Jun 2015 19:33:33 +0000
(15:33 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>
src/transform.nit
patch
|
blob
|
history
diff --git
a/src/transform.nit
b/src/transform.nit
index
ebe2c73
..
838b9bc
100644
(file)
--- a/
src/transform.nit
+++ b/
src/transform.nit
@@
-104,7
+104,12
@@
redef class AExpr
var nadd = v.builder.make_call(recv, na.push_callsite.as(not null), [self])
place.replace_with(nadd)
end
- super
+
+ visit_all(v)
+
+ if mtype == null and not is_typed then return # Skip broken
+
+ accept_transform_visitor(v)
end
redef fun replace_with(other)