File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -46,12 +46,13 @@ SindarinDebugger >> assignmentVariableName [
4646SindarinDebugger >> canStillExecute: aProgramNode [
4747 " returns true if the last pc mapped to aProgramNode is greater than `self pc` in the right context "
4848
49- | lastPcForNode rightContext |
49+ | lastPcForNode rightContext outerContext |
5050 rightContext := self context.
51+ outerContext := rightContext outerContext ifNil: [ rightContext ].
5152
5253 [
53- rightContext == rightContext outerMostContext or : [
54- rightContext method ast allChildren identityIncludes: aProgramNode ] ]
54+ rightContext == outerContext or : [
55+ rightContext method ast allChildren identityIncludes: aProgramNode ] ]
5556 whileFalse: [ rightContext := rightContext sender ].
5657
5758 lastPcForNode := (rightContext method ast lastPcForNode: aProgramNode)
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ TSindarin >> outerMostContextOf: aContext [
195195 oldContext := nil .
196196 [currentContext ~= oldContext] whileTrue: [
197197 oldContext := currentContext.
198- currentContext := currentContext outerMostContext ].
198+ currentContext := currentContext outerContext ifNil: [currentContext] ].
199199 ^ currentContext
200200]
201201
You can’t perform that action at this time.
0 commit comments