JetNamedFunction#hasTypeParameterListBeforeFunctionName() by stub

This commit is contained in:
Pavel V. Talanov
2014-03-31 14:09:17 +04:00
parent 1d112c3358
commit f9a051e71e
@@ -46,6 +46,14 @@ public class JetNamedFunction extends JetTypeParameterListOwnerStub<PsiJetFuncti
}
public boolean hasTypeParameterListBeforeFunctionName() {
PsiJetFunctionStub stub = getStub();
if (stub != null) {
return stub.hasTypeParameterListBeforeFunctionName();
}
return hasTypeParameterListBeforeFunctionNameByTree();
}
private boolean hasTypeParameterListBeforeFunctionNameByTree() {
JetTypeParameterList typeParameterList = getTypeParameterList();
if (typeParameterList == null) {
return false;