JetNamedFunction#hasTypeParameterListBeforeFunctionName() by stub
This commit is contained in:
@@ -46,6 +46,14 @@ public class JetNamedFunction extends JetTypeParameterListOwnerStub<PsiJetFuncti
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasTypeParameterListBeforeFunctionName() {
|
public boolean hasTypeParameterListBeforeFunctionName() {
|
||||||
|
PsiJetFunctionStub stub = getStub();
|
||||||
|
if (stub != null) {
|
||||||
|
return stub.hasTypeParameterListBeforeFunctionName();
|
||||||
|
}
|
||||||
|
return hasTypeParameterListBeforeFunctionNameByTree();
|
||||||
|
}
|
||||||
|
|
||||||
|
private boolean hasTypeParameterListBeforeFunctionNameByTree() {
|
||||||
JetTypeParameterList typeParameterList = getTypeParameterList();
|
JetTypeParameterList typeParameterList = getTypeParameterList();
|
||||||
if (typeParameterList == null) {
|
if (typeParameterList == null) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user