JetNamedFunction#hasBody() by stub
This commit is contained in:
@@ -103,6 +103,10 @@ public class JetNamedFunction extends JetTypeParameterListOwnerStub<PsiJetFuncti
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean hasBody() {
|
public boolean hasBody() {
|
||||||
|
PsiJetFunctionStub stub = getStub();
|
||||||
|
if (stub != null) {
|
||||||
|
return stub.hasBody();
|
||||||
|
}
|
||||||
return getBodyExpression() != null;
|
return getBodyExpression() != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user