Minor, reorder

This commit is contained in:
Aleksey Kladov 2020-07-30 16:12:35 +02:00
parent 97fb5daf72
commit 98ec5f2c21

View file

@ -82,10 +82,6 @@ StructDef =
| TupleFieldDefList WhereClause? ';'
)
UnionDef =
Attr* Visibility? 'union' Name GenericParamList? WhereClause?
RecordFieldDefList
RecordFieldDefList =
'{' fields:RecordFieldDef* '}'
@ -102,6 +98,11 @@ FieldDefList =
RecordFieldDefList
| TupleFieldDefList
UnionDef =
Attr* Visibility? 'union' Name GenericParamList? WhereClause?
RecordFieldDefList
EnumDef =
Attr* Visibility? 'enum' Name GenericParamList? WhereClause?
variant_list:EnumVariantList