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? ';' | TupleFieldDefList WhereClause? ';'
) )
UnionDef =
Attr* Visibility? 'union' Name GenericParamList? WhereClause?
RecordFieldDefList
RecordFieldDefList = RecordFieldDefList =
'{' fields:RecordFieldDef* '}' '{' fields:RecordFieldDef* '}'
@ -102,6 +98,11 @@ FieldDefList =
RecordFieldDefList RecordFieldDefList
| TupleFieldDefList | TupleFieldDefList
UnionDef =
Attr* Visibility? 'union' Name GenericParamList? WhereClause?
RecordFieldDefList
EnumDef = EnumDef =
Attr* Visibility? 'enum' Name GenericParamList? WhereClause? Attr* Visibility? 'enum' Name GenericParamList? WhereClause?
variant_list:EnumVariantList variant_list:EnumVariantList