JetClass#getDeclarations() by stub

This commit is contained in:
Pavel V. Talanov
2014-03-28 21:24:54 +04:00
parent bceb5c3970
commit 741dba111b
@@ -49,7 +49,7 @@ public class JetClass extends JetTypeParameterListOwnerStub<PsiJetClassStub> imp
@NotNull
@Override
public List<JetDeclaration> getDeclarations() {
JetClassBody body = (JetClassBody) findChildByType(JetNodeTypes.CLASS_BODY);
JetClassBody body = getStubOrPsiChild(JetStubElementTypes.CLASS_BODY);
if (body == null) return Collections.emptyList();
return body.getDeclarations();