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:
Mikhail Glukhikh
2015-05-05 12:41:20 +03:00
parent 7a4dee44b8
commit cf741cb868
23 changed files with 243 additions and 103 deletions
+5 -1
View File
@@ -5,7 +5,11 @@ See [Enum classes](enum-classes.html)
*/
enumClassBody
: "{" (enumEntry | memberDeclaration)* "}"
: "{" enumEntries members "}"
;
enumEntries
: enumEntry*
;
enumEntry