mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PsiImmediateClassType#getParameterCount optimized implementation
GitOrigin-RevId: 944cda81039386120db79b2124ce686aa987264e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5276c9d8fd
commit
ba14a3823c
@@ -118,6 +118,13 @@ public class PsiImmediateClassType extends PsiClassType.Stub {
|
||||
return myClass.getName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getParameterCount() {
|
||||
PsiTypeParameterList list = myClass.getTypeParameterList();
|
||||
if (list == null) return 0;
|
||||
return list.getTypeParameters().length;
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public PsiType[] getParameters() {
|
||||
|
||||
Reference in New Issue
Block a user