From f2cfbffbcfd9e0936272fed8c8e359be560dd77f Mon Sep 17 00:00:00 2001 From: vonbecmann Date: Thu, 4 May 2023 19:21:54 -0300 Subject: [PATCH] extract return from SindarinDebugger>>#moveToNode: --- src/Sindarin/SindarinDebugger.class.st | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Sindarin/SindarinDebugger.class.st b/src/Sindarin/SindarinDebugger.class.st index ce84b83..4d801fd 100644 --- a/src/Sindarin/SindarinDebugger.class.st +++ b/src/Sindarin/SindarinDebugger.class.st @@ -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."