Skip to content

Commit

Permalink
inheritance index: Fixing incorrect QName for types in module when re…
Browse files Browse the repository at this point in the history
…solved from import statement.
  • Loading branch information
m0rkeulv committed May 19, 2024
1 parent c9bd15e commit 0b4f4fa
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1397,6 +1397,11 @@ public static String getQName(PsiFile file, final String result, boolean searchI

final HaxeExpression importStatementExpression = importStatement == null ? null : importStatement.getReferenceExpression();
if (importStatementExpression != null) {
PsiElement element = importStatement.getModel().exposeByName(result);
if (element instanceof HaxeClass classModel) {
return classModel.getQualifiedName();
}
// fallback if we dont have a HaxeClass
return importStatementExpression.getText();
}

Expand Down

0 comments on commit 0b4f4fa

Please sign in to comment.