Skip to content

Commit

Permalink
TypeSpec creation fallback
Browse files Browse the repository at this point in the history
Summary: For the cases when we can't resolve PsiClassType.resolve() use the fallback method to create the simple TypeSpec  representation

Reviewed By: rahulsbisen

Differential Revision: D16803185

fbshipit-source-id: 63428dee4abcb3625c5d7682c817ac5af983aa7b
  • Loading branch information
Kata Zavorotchenko authored and facebook-github-bot committed Aug 14, 2019
1 parent d20ef08 commit def8353
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ public TypeSpec visitType(PsiType type) {
@Override
public TypeSpec visitClassType(PsiClassType classType) {
final PsiClass psiClass = classType.resolve();
if (psiClass == null) {
return visitType(classType);
}
// In case of Generic like E extends ..., getQualifiedName() returns null;
final String qualifiedName =
psiClass.getQualifiedName() != null
Expand Down

0 comments on commit def8353

Please sign in to comment.