Skip to content

Commit

Permalink
Add safeguard
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed Dec 4, 2024
1 parent f6591a5 commit 39226ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Famix-Python-Importer/FamixPythonImporterVisitor.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -897,10 +897,10 @@ FamixPythonImporterVisitor >> visitVariableExpression: aVariableExpression [
yourself)
foundAction: [ :entity :currentEntity | "In case of a class, we need to create a reference. In case of a structural entity we have a read access."
entity isClass
ifTrue: [ ]
ifTrue: [ self flag: #todo ]
ifFalse: [
entity isFunction
ifTrue: [ ]
ifTrue: [ self flag: #todo ]
ifFalse: [
| access |
access := model newAccess.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ FamixPythonSmaCCASTSpecializer >> visitFieldAccessExpression: aFieldAccessExpres
aFieldAccessExpression isInstanceVariableAssignation ifTrue: [ ^ FamixPythonAssignedInstanceVariableNode adoptInstance: aFieldAccessExpression ]
]

{ #category : 'generated' }
FamixPythonSmaCCASTSpecializer >> visitTypedVariableExpression: aTypedVariableExpression [
^ self flag: #todo
]

{ #category : 'generated' }
FamixPythonSmaCCASTSpecializer >> visitVariableExpression: aVariableExpression [
"This node is used in multiple situations. I am trying to remove some ambiguity by specializing the nodes."
Expand Down

0 comments on commit 39226ff

Please sign in to comment.