From 0a9e3ccc262fbcbd4cdaab30384f8cb71584544b Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 30 Jul 2020 16:49:13 +0200 Subject: Rename FieldDef -> Field --- xtask/src/codegen/rust.ungram | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'xtask/src/codegen/rust.ungram') diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index 49b2c9ff8..ba922af0d 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram @@ -78,30 +78,30 @@ TypeAlias = StructDef = Attr* Visibility? 'struct' Name GenericParamList? ( - WhereClause? (RecordFieldDefList | ';') - | TupleFieldDefList WhereClause? ';' + WhereClause? (RecordFieldList | ';') + | TupleFieldList WhereClause? ';' ) -RecordFieldDefList = - '{' fields:RecordFieldDef* '}' +RecordFieldList = + '{' fields:RecordField* '}' -RecordFieldDef = +RecordField = Attr* Visibility? Name ':' ascribed_type:TypeRef -TupleFieldDefList = - '(' fields:TupleFieldDef* ')' +TupleFieldList = + '(' fields:TupleField* ')' -TupleFieldDef = +TupleField = Attr* Visibility? Name TypeRef -FieldDefList = - RecordFieldDefList -| TupleFieldDefList +FieldList = + RecordFieldList +| TupleFieldList UnionDef = Attr* Visibility? 'union' Name GenericParamList? WhereClause? - RecordFieldDefList + RecordFieldList EnumDef = Attr* Visibility? 'enum' Name GenericParamList? WhereClause? @@ -111,7 +111,7 @@ EnumVariantList = '{' variants:EnumVariant* '}' EnumVariant = - Attr* Visibility? Name FieldDefList ('=' Expr)? + Attr* Visibility? Name FieldList ('=' Expr)? TraitDef = Attr* Visibility? 'unsafe'? 'auto'? 'trait' Name GenericParamList -- cgit v1.2.3