Skip to content

Commit

Permalink
Use new scope bypassing mecanism to speed up resolution of imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed Oct 11, 2024
1 parent 0a50a86 commit 97c2867
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ FamixPythonAbstractImportResolvable >> findTargetEntityFor: aPath from: startEnt
splittedPath removeFirst.
possibleEntities := possibleEntities flatCollect: [ :possibleEntity |
possibleEntity children select: [ :child | (child isPackage or: [ child isModule ]) and: [ child name = childName ] ] ] ].
possibleEntities ifEmpty: [ NotFound signal ].
possibleEntities ifEmpty: [ SRNoResolutionPossible signal ].

possibleEntities size = 1 ifFalse: [ self error: 'There should be only one possible entity to import.' ].

Expand Down

0 comments on commit 97c2867

Please sign in to comment.