Skip to content

Commit

Permalink
Fix bug in inst var read access that was considering some method invo…
Browse files Browse the repository at this point in the history
…cations as inst var accesses wrongly
  • Loading branch information
jecisc committed Jan 17, 2025
1 parent 8e4a9f1 commit 5263cd1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ PyFieldAccessExpressionNode >> isInstanceVariableAssignation [
{ #category : '*Famix-Python-Importer' }
PyFieldAccessExpressionNode >> isInternalInstanceVariableAccess [

(self parent isFunctionCallExpression and: [ self parent receiver = self ]) ifTrue: [ "In that case we are in a method invocation" ^ false ].
^ self receiver isSelf
]

Expand Down

0 comments on commit 5263cd1

Please sign in to comment.