JetNamedFunction#hasBody() by stub

This commit is contained in:
Pavel V. Talanov
2014-03-26 17:20:38 +04:00
parent 66aae37bc6
commit a604efebd9
@@ -103,6 +103,10 @@ public class JetNamedFunction extends JetTypeParameterListOwnerStub<PsiJetFuncti
@Override
public boolean hasBody() {
PsiJetFunctionStub stub = getStub();
if (stub != null) {
return stub.hasBody();
}
return getBodyExpression() != null;
}