Skip to content

Commit

Permalink
Ignore anonymous types in InheritanceDefinitionsSearcher (#1182)
Browse files Browse the repository at this point in the history
  • Loading branch information
m0rkeulv committed Aug 10, 2024
1 parent bde3b5e commit 32296b9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public static Collection<HaxeClass> getItemsByQNameFirstLevelChildrenOnly(final
.allowParallelProcessing()
.filtering(element -> element instanceof HaxeClass)
.mapping( element -> (HaxeClass) element)
.filtering(aClass -> !aClass.isAnonymousType())// ignore anonymous as they do not inherit
.filtering(element ->
Arrays.stream(element.getSuperTypes()).map(PsiClassType::resolve).anyMatch(psiClass -> psiClass == haxeClass)
).findAll();
Expand Down

0 comments on commit 32296b9

Please sign in to comment.