#BUGFIX by exept
authorClaus Gittinger <cg@exept.de>
Mon, 19 Aug 2019 16:21:27 +0200
changeset 4497 25868e8ec797
parent 4496 4896f7c0c61a
child 4498 1a3bc6bdbfab
#BUGFIX by exept class: ParseNodeVisitor added: #doesNotUnderstand: #visitJavaScriptAssignmentNode: #visitJavaScriptInnerFunctionNode: #visitJavaScriptReturnNode:
ParseNodeVisitor.st
--- a/ParseNodeVisitor.st	Mon Aug 19 14:27:13 2019 +0200
+++ b/ParseNodeVisitor.st	Mon Aug 19 16:21:27 2019 +0200
@@ -158,6 +158,17 @@
 
 !ParseNodeVisitor methodsFor:'visiting - javaScript'!
 
+doesNotUnderstand:aMessage
+    "catch to prevent stupid error reports from Explainer in end-user app (expecco)"
+
+    Smalltalk isStandAloneApp ifTrue:[^ self].
+    "/ ((aMessage selector startsWith:'visit') 
+    "/ and:[ aMessage selector endsWith:'Node:' ]) ifTrue:[
+    "/     ^ self.
+    "/ ].
+    ^ super doesNotUnderstand:aMessage.
+!
+
 visitFunctionCallNode:anObject
     self visitMessageNode:anObject
 !
@@ -166,6 +177,10 @@
     self visitFunctionCallNode:aNode
 !
 
+visitJavaScriptAssignmentNode:aNode
+    self visitAssignmentNode:aNode
+!
+
 visitJavaScriptFunctionNode:aNode
     |stmt|
 
@@ -176,6 +191,14 @@
     ].
 !
 
+visitJavaScriptInnerFunctionNode:aNode
+    self visitJavaScriptFunctionNode:aNode
+!
+
+visitJavaScriptReturnNode:aNode
+    self visitReturnNode:aNode
+!
+
 visitJavaScriptStatementNode:aNode
     self visitStatementNode:aNode
 !