From 88fe7831c85a43cbb33ff8d1624a1303c027825b Mon Sep 17 00:00:00 2001 From: CyrilFerlicot Date: Thu, 5 Dec 2024 17:55:51 +0100 Subject: [PATCH] Speedup parser --- .../FamixPythonImporterVisitor.class.st | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Famix-Python-Importer/FamixPythonImporterVisitor.class.st b/src/Famix-Python-Importer/FamixPythonImporterVisitor.class.st index 79ebc88..80200dc 100644 --- a/src/Famix-Python-Importer/FamixPythonImporterVisitor.class.st +++ b/src/Famix-Python-Importer/FamixPythonImporterVisitor.class.st @@ -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 ] ]