Skip to content

Commit

Permalink
Merge pull request #66 from vonbecmann/patch-1
Browse files Browse the repository at this point in the history
extract return from SindarinDebugger>>#moveToNode:
  • Loading branch information
adri09070 committed May 25, 2023
2 parents e55f1e0 + f2cfbff commit df4689b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Sindarin/SindarinDebugger.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ SindarinDebugger >> moveToNode: aNode [
(aNode == self methodNode or: [ aNode == self methodNode body ])
ifTrue: [ firstPCForNode := self method endPC ]
ifFalse: [
self context ~~ self context home
ifTrue: [ ^ self tryMoveToNodeInHomeContext: aNode ]
ifFalse: [ ^ NodeNotInASTError signal ] ] ]
^ self context ~~ self context home
ifTrue: [ self tryMoveToNodeInHomeContext: aNode ]
ifFalse: [ NodeNotInASTError signal ] ] ]
ifNotNil: [ :parent |
| nextNode |
"If a node does not have any associated pc but this node is a child in the method node then, we go to the next node that will be executed (so in pre-order) and that has an associated pc in this context."
Expand Down

0 comments on commit df4689b

Please sign in to comment.