diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetClassBody.java b/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetClassBody.java index 6e3683215b4..4a730010297 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetClassBody.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/psi/JetClassBody.java @@ -23,23 +23,21 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.jetbrains.jet.JetNodeTypes; import org.jetbrains.jet.lang.psi.stubs.PsiJetPlaceHolderStub; -import org.jetbrains.jet.lang.psi.stubs.elements.JetStubElementTypes; import org.jetbrains.jet.lexer.JetTokens; import java.util.Arrays; import java.util.List; +import static org.jetbrains.jet.lang.psi.stubs.elements.JetStubElementTypes.*; + public class JetClassBody extends JetElementImplStub> implements JetDeclarationContainer { - private static final TokenSet DECLARATION_TYPES = - TokenSet.create(JetStubElementTypes.CLASS, JetStubElementTypes.OBJECT_DECLARATION, JetStubElementTypes.CLASS_OBJECT, - JetStubElementTypes.FUNCTION, JetStubElementTypes.PROPERTY); public JetClassBody(@NotNull ASTNode node) { super(node); } public JetClassBody(@NotNull PsiJetPlaceHolderStub stub) { - super(stub, JetStubElementTypes.CLASS_BODY); + super(stub, CLASS_BODY); } @Override @@ -65,7 +63,7 @@ public class JetClassBody extends JetElementImplStub DELEGATION_SPECIFIER_LIST = new JetPlaceHolderStubElementType("DELEGATION_SPECIFIER_LIST", JetDelegationSpecifierList.class); + + TokenSet DECLARATION_TYPES = + TokenSet.create(CLASS, OBJECT_DECLARATION, CLASS_OBJECT, FUNCTION, PROPERTY, ANONYMOUS_INITIALIZER, ENUM_ENTRY); }