Skip to content

Commit

Permalink
Speedup parser
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed Dec 5, 2024
1 parent 7d209d5 commit 88fe783
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Famix-Python-Importer/FamixPythonImporterVisitor.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -676,16 +676,16 @@ FamixPythonImporterVisitor >> signatureFromInvocation: anInvocationNode [
{ #category : 'private - searching' }
FamixPythonImporterVisitor >> unknownAccessedOrReferencedEntityNamed: aString [

^ self model entities
detect: [ :e | e class = FamixPythonUnknownAccessedOrReferencedEntity and: [ e name = aString ] ]
^ (self model allWithType: FamixPythonUnknownAccessedOrReferencedEntity)
detect: [ :e | e name = aString ]
ifNone: [ nil ]
]

{ #category : 'private - searching' }
FamixPythonImporterVisitor >> unknownImportedNamed: aString [

^ self model entities
detect: [ :e | e class = FamixPythonUnknownImportedEntity and: [ e name = aString ] ]
^ (self model allWithType: FamixPythonUnknownImportedEntity)
detect: [ :e | e name = aString ]
ifNone: [ nil ]
]

Expand Down

0 comments on commit 88fe783

Please sign in to comment.