JetNamedFunction#hasBody() by stub
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user