ParseNodeVisitor.st
branchjv
changeset 3968 4e4f134b6e26
parent 3841 a22f33410bdf
parent 3964 f24f12ed11a1
child 4723 524785227024
--- a/ParseNodeVisitor.st	Fri Sep 02 17:35:56 2016 +0100
+++ b/ParseNodeVisitor.st	Tue Sep 06 06:59:40 2016 +0200
@@ -145,7 +145,11 @@
 !
 
 visitStatementNode:anObject 
-    self visit: anObject expression.
+    |expr|
+
+    (expr := anObject expression) notNil ifTrue:[
+        self visit: expr.
+    ]
 !
 
 visitSuperNode:anObject