Optimize KtPropertyAccessor.hasBlockBody()

This commit is contained in:
Mikhail Glukhikh
2018-04-11 18:36:12 +03:00
parent 876563ca91
commit 1477e67076
@@ -91,6 +91,10 @@ public class KtPropertyAccessor extends KtDeclarationStub<KotlinPropertyAccessor
@Override
public boolean hasBlockBody() {
KotlinPropertyAccessorStub stub = getStub();
if (stub != null) {
return stub.hasBlockBody();
}
return getEqualsToken() == null;
}