Skip to content

Commit 120935b

Browse files
committed
Using outerContext instead of outerMostContext
1 parent 6e1813d commit 120935b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/Sindarin/SindarinDebugger.class.st

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,13 @@ SindarinDebugger >> assignmentVariableName [
4646
SindarinDebugger >> 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)

src/Sindarin/TSindarin.trait.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)