Skip to content

Commit

Permalink
fix findUndeclaredVariableIn:
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusDenker committed Jul 18, 2020
1 parent 8343fc3 commit ca15031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kernel/UndefinedObject.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ UndefinedObject >> findUndeclaredVariableIn: ast [
"Walk the ast of the current statment and find the undeclared variable node, or nil (if none).
Assumes there is only one such variable in an executing statement"

^ast nodes detect: [:node | node isVariable and: [ node isUndeclared]] ifNone: [ nil ]
^ast variableNodes detect: [:node | node isUndeclared] ifNone: [ nil ]
]

{ #category : #testing }
Expand Down

0 comments on commit ca15031

Please sign in to comment.