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 [
46
46
SindarinDebugger >> canStillExecute: aProgramNode [
47
47
" returns true if the last pc mapped to aProgramNode is greater than `self pc` in the right context "
48
48
49
- | lastPcForNode rightContext |
49
+ | lastPcForNode rightContext outerContext |
50
50
rightContext := self context.
51
+ outerContext := rightContext outerContext ifNil: [ rightContext ].
51
52
52
53
[
53
- rightContext == rightContext outerMostContext or : [
54
- rightContext method ast allChildren identityIncludes: aProgramNode ] ]
54
+ rightContext == outerContext or : [
55
+ rightContext method ast allChildren identityIncludes: aProgramNode ] ]
55
56
whileFalse: [ rightContext := rightContext sender ].
56
57
57
58
lastPcForNode := (rightContext method ast lastPcForNode: aProgramNode)
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ TSindarin >> outerMostContextOf: aContext [
195
195
oldContext := nil .
196
196
[currentContext ~= oldContext] whileTrue: [
197
197
oldContext := currentContext.
198
- currentContext := currentContext outerMostContext ].
198
+ currentContext := currentContext outerContext ifNil: [currentContext] ].
199
199
^ currentContext
200
200
]
201
201
You can’t perform that action at this time.
0 commit comments