Changed parsing of object and enum entries to drop "KtObjectDeclarationName"

This commit is contained in:
Valentin Kipyatkov
2015-10-30 21:14:03 +03:00
parent 03cda7f4d1
commit 52dc23012f
61 changed files with 180 additions and 409 deletions
+6 -9
View File
@@ -19,13 +19,11 @@ JetFile: namelessObjectAsEnumMember.kt
PsiElement(LBRACE)('{')
PsiWhiteSpace('\n ')
ENUM_ENTRY
OBJECT_DECLARATION_NAME
PsiElement(IDENTIFIER)('A')
PsiElement(IDENTIFIER)('A')
PsiElement(COMMA)(',')
PsiWhiteSpace('\n ')
ENUM_ENTRY
OBJECT_DECLARATION_NAME
PsiElement(IDENTIFIER)('B')
PsiElement(IDENTIFIER)('B')
PsiElement(SEMICOLON)(';')
PsiWhiteSpace('\n\n ')
OBJECT_DECLARATION
@@ -33,8 +31,7 @@ JetFile: namelessObjectAsEnumMember.kt
PsiElement(inner)('inner')
PsiWhiteSpace(' ')
PsiElement(object)('object')
PsiWhiteSpace('\n')
OBJECT_DECLARATION_NAME
PsiErrorElement:Name expected
<empty list>
PsiElement(RBRACE)('}')
PsiErrorElement:Name expected
<empty list>
PsiWhiteSpace('\n')
PsiElement(RBRACE)('}')