#BUGFIX by cg
authorClaus Gittinger <cg@exept.de>
Sat, 22 Sep 2018 09:40:01 +0200
changeset 5910 1f6e0165088c
parent 5908 56d1ccc9de01
child 5911 3cb8e229215c
#BUGFIX by cg class: DoWhatIMeanSupport changed: #findNodeForInterval:in:allowErrors:mustBeMethod:mustBeExpression:
DoWhatIMeanSupport.st
--- a/DoWhatIMeanSupport.st	Tue Sep 18 11:46:07 2018 +0200
+++ b/DoWhatIMeanSupport.st	Sat Sep 22 09:40:01 2018 +0200
@@ -4170,6 +4170,11 @@
 
                 nodesSoFar := nodesSoFarFromParser.
                 ((str includesString:'Unmatched') and:[str includesString:' in string literal']) ifTrue:[
+                    parser isNil ifTrue:[
+                        "/ happesn during init of parser, when the first step is done before
+                        "/ parser is set (and returned) - sigh.
+                        ^ #()
+                    ].   
                     partialStringStart := parser scanner tokenStart.
                     partialStringEnd := parser scanner currentPosition.
                     (source at:partialStringStart) == $' ifTrue:[partialStringStart := partialStringStart + 1].
@@ -4307,7 +4312,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 / 17:22:00 / Claus Gittinger"
+    "Modified: / 22-09-2018 / 09:39:43 / Claus Gittinger"
 !
 
 findNodeForInterval:interval inParseTree:parseTree