Skip to content

Commit

Permalink
extract return from SindarinDebugger>>#moveToNode:
Browse files Browse the repository at this point in the history
  • Loading branch information
vonbecmann authored May 4, 2023
1 parent 1c3002e commit f2cfbff
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 @@ -389,9 +389,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 f2cfbff

Please sign in to comment.