From 741dba111b35eb6b4236e3443ea5f82809b76f6d Mon Sep 17 00:00:00 2001 From: "Pavel V. Talanov" Date: Fri, 28 Mar 2014 21:24:54 +0400 Subject: [PATCH] JetClass#getDeclarations() by stub --- compiler/frontend/src/org/jetbrains/jet/lang/psi/JetClass.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetClass.java b/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetClass.java index 78d2a3589e3..0b05d56a667 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetClass.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetClass.java @@ -49,7 +49,7 @@ public class JetClass extends JetTypeParameterListOwnerStub imp @NotNull @Override public List getDeclarations() { - JetClassBody body = (JetClassBody) findChildByType(JetNodeTypes.CLASS_BODY); + JetClassBody body = getStubOrPsiChild(JetStubElementTypes.CLASS_BODY); if (body == null) return Collections.emptyList(); return body.getDeclarations();