Enum parsing changed: first entries, then members. Grammar fixed accordingly.
A set of compiler tests and some plugin tests changed accordingly. Compiler Kotlin code changed accordingly.
This commit is contained in:
@@ -5,7 +5,11 @@ See [Enum classes](enum-classes.html)
|
||||
*/
|
||||
|
||||
enumClassBody
|
||||
: "{" (enumEntry | memberDeclaration)* "}"
|
||||
: "{" enumEntries members "}"
|
||||
;
|
||||
|
||||
enumEntries
|
||||
: enumEntry*
|
||||
;
|
||||
|
||||
enumEntry
|
||||
|
||||
Reference in New Issue
Block a user