Skip to content

Commit

Permalink
Clean code + fix bug (#isSelf was sent to another kind of node)
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed Dec 11, 2024
1 parent 019f471 commit 0318ae2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,6 @@ FamixPythonImporterVisitor >> visitInternalInstanceVariableAccess: anInternalIns
self
resolve: ((SRIdentifierWithNode identifier: anInternalInstanceVariableAccess name)
expectedKind: { FamixPythonAttribute };
notFoundReplacementEntity: [ :unresolved :currentEntity | self flag: #todo. 1 halt "self ensureStubUnknownAccessedOrReferencedEntityNamed: unresolved identifier" ];
yourself)
foundAction: [ :entity :currentEntity |
| association |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ PyFieldAccessExpressionNode >> isInternalInstanceVariableAccess [
^ self receiver isSelf
]

{ #category : '*Famix-Python-Importer' }
PyFieldAccessExpressionNode >> isSelf [

^ false
]

{ #category : '*Famix-Python-Importer' }
PyFieldAccessExpressionNode >> name [
^ self nameToken value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,3 @@ PyFunctionCallExpressionNode >> isFunctionCallExpression [

^ true
]

{ #category : '*Famix-Python-Importer' }
PyFunctionCallExpressionNode >> isSelf [

^ false
]
6 changes: 6 additions & 0 deletions src/Famix-Python-Importer/PyRootNode.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ PyRootNode >> isLeftSideOfAssignation: aNode [
^ false
]

{ #category : '*Famix-Python-Importer' }
PyRootNode >> isSelf [

^ false
]

{ #category : '*Famix-Python-Importer' }
PyRootNode >> isSubscriptExpression [

Expand Down

0 comments on commit 0318ae2

Please sign in to comment.