#BUGFIX by cg
authorClaus Gittinger <cg@exept.de>
Wed, 29 Aug 2018 17:24:52 +0200
changeset 5901 3784750b3bc5
parent 5900 880fa5a89fb8
child 5902 1ad98b113571
#BUGFIX by cg class: DoWhatIMeanSupport changed: #findNodeForInterval:in:allowErrors:mustBeMethod:mustBeExpression:
DoWhatIMeanSupport.st
--- a/DoWhatIMeanSupport.st	Wed Aug 29 16:56:25 2018 +0200
+++ b/DoWhatIMeanSupport.st	Wed Aug 29 17:24:52 2018 +0200
@@ -4177,7 +4177,7 @@
                     partialStringInterval := partialStringStart to:partialStringEnd.
                     "/ error is reported by scanner - no nodesSoFar passed in
                     nodesSoFar := parser nodesSoFar.
-                    ^ nodesSoFar detectMax:[:node | node endPosition]
+                    ^ nodesSoFar detectMax:[:node | node endPosition ? -1]
                 ].    
                 allowErrors ifTrue:[
                     rememberedScopeNodes := currentScopeNodes.
@@ -4307,7 +4307,7 @@
     "Created: / 16-09-2011 / 14:52:08 / cg"
     "Modified: / 18-09-2013 / 16:47:13 / Jan Vrany <jan.vrany@fit.cvut.cz>"
     "Modified (comment): / 01-05-2016 / 10:05:10 / cg"
-    "Modified: / 29-08-2018 / 16:39:31 / Claus Gittinger"
+    "Modified: / 29-08-2018 / 17:22:00 / Claus Gittinger"
 !
 
 findNodeForInterval:interval inParseTree:parseTree