#FEATURE by exept
authorClaus Gittinger <cg@exept.de>
Sat, 24 Aug 2019 09:20:05 +0200
changeset 4524 111b3e240d4a
parent 4523 5498e118d969
child 4525 7df76198ecbd
#FEATURE by exept class: ParseNode changed: #startPosition:endPosition: #whichNodeIsContainedBy:
ParseNode.st
--- a/ParseNode.st	Sat Aug 24 00:50:45 2019 +0200
+++ b/ParseNode.st	Sat Aug 24 09:20:05 2019 +0200
@@ -133,7 +133,6 @@
         (each intersectsInterval:anInterval) ifTrue:[
             firstChildInInterval notNil ifTrue:[
                 "/ ouch: multiple children in interval
-                self halt.
                 ^ self
             ].
             firstChildInInterval := each
@@ -270,7 +269,7 @@
         "/ self halt.
     ] ifFalse:[
         "/ nil end means: up-to-end (but only for error nodes)
-        self assert:start > 0.
+        self assert:(start notNil and:[start > 0]).
         end isNil ifTrue:[
             self assert:(self isErrorNode)
         ] ifFalse:[