4e1a90ee61
Now incorrect enum members order is treated as a warning.
72 lines
2.1 KiB
Plaintext
72 lines
2.1 KiB
Plaintext
JetFile: EnumSemicolonBetweenWithMembers.kt
|
|
PACKAGE_DIRECTIVE
|
|
<empty list>
|
|
CLASS
|
|
MODIFIER_LIST
|
|
PsiElement(enum)('enum')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(class)('class')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(IDENTIFIER)('Color')
|
|
PsiWhiteSpace(' ')
|
|
CLASS_BODY
|
|
PsiElement(LBRACE)('{')
|
|
PsiWhiteSpace('\n ')
|
|
ENUM_ENTRY
|
|
OBJECT_DECLARATION_NAME
|
|
PsiElement(IDENTIFIER)('NORTH')
|
|
PsiElement(SEMICOLON)(';')
|
|
PsiWhiteSpace('\n ')
|
|
FUN
|
|
PsiElement(fun)('fun')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(IDENTIFIER)('foo')
|
|
VALUE_PARAMETER_LIST
|
|
PsiElement(LPAR)('(')
|
|
PsiElement(RPAR)(')')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(EQ)('=')
|
|
PsiWhiteSpace(' ')
|
|
INTEGER_CONSTANT
|
|
PsiElement(INTEGER_LITERAL)('1')
|
|
PsiWhiteSpace('\n ')
|
|
ENUM_ENTRY
|
|
OBJECT_DECLARATION_NAME
|
|
PsiElement(IDENTIFIER)('SOUTH')
|
|
PsiElement(SEMICOLON)(';')
|
|
PsiWhiteSpace('\n ')
|
|
OBJECT_DECLARATION
|
|
MODIFIER_LIST
|
|
PsiElement(companion)('companion')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(object)('object')
|
|
PsiWhiteSpace(' ')
|
|
CLASS_BODY
|
|
PsiElement(LBRACE)('{')
|
|
PsiWhiteSpace('\n ')
|
|
FUN
|
|
PsiElement(fun)('fun')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(IDENTIFIER)('bar')
|
|
VALUE_PARAMETER_LIST
|
|
PsiElement(LPAR)('(')
|
|
PsiElement(RPAR)(')')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(EQ)('=')
|
|
PsiWhiteSpace(' ')
|
|
INTEGER_CONSTANT
|
|
PsiElement(INTEGER_LITERAL)('2')
|
|
PsiWhiteSpace('\n ')
|
|
PsiElement(RBRACE)('}')
|
|
PsiWhiteSpace('\n ')
|
|
ENUM_ENTRY
|
|
OBJECT_DECLARATION_NAME
|
|
PsiElement(IDENTIFIER)('WEST')
|
|
PsiErrorElement:Expecting ','
|
|
PsiElement(SEMICOLON)(';')
|
|
PsiWhiteSpace('\n ')
|
|
ENUM_ENTRY
|
|
OBJECT_DECLARATION_NAME
|
|
PsiElement(IDENTIFIER)('EAST')
|
|
PsiWhiteSpace('\n')
|
|
PsiElement(RBRACE)('}') |