transform: skip transformation of broken expr
authorJean Privat <jean@pryen.org>
Thu, 4 Jun 2015 02:34:24 +0000 (22:34 -0400)
committerJean 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

index ebe2c73..838b9bc 100644 (file)
@@ -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)