From 6636f56e79b55f22b88094b7edaed6ec88880500 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 30 Jul 2020 00:23:03 +0200 Subject: Rename ModuleItem -> Item --- xtask/src/codegen/rust.ungram | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'xtask/src/codegen') diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index b6ec5d5e7..08db70093 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram @@ -1,6 +1,22 @@ SourceFile = Attr* - items:ModuleItem* + Item* + +Item = + ConstDef +| EnumDef +| ExternBlock +| ExternCrateItem +| FnDef +| ImplDef +| MacroCall +| Module +| StaticDef +| StructDef +| TraitDef +| TypeAliasDef +| UnionDef +| UseItem FnDef = Attr* Visibility? Abi? 'const' 'default' 'async' 'unsafe' 'fn' Name TypeParamList? @@ -59,7 +75,7 @@ Module = ItemList = '{' AssocItem* - items:ModuleItem* + Item* '}' ConstDef = @@ -168,7 +184,7 @@ Label = BlockExpr = Attr* Label '{' - items:ModuleItem* + Item* statements:Stmt* Expr? '}' @@ -316,7 +332,7 @@ TokenTree = '(' ')' | '{' '}' | '[' ']' MacroItems = - items:ModuleItem* + Item* MacroStmts = statements:Stmt* @@ -454,22 +470,6 @@ AssocItem = ExternItem = FnDef | StaticDef -ModuleItem = - StructDef -| UnionDef -| EnumDef -| FnDef -| TraitDef -| TypeAliasDef -| ImplDef -| UseItem -| ExternCrateItem -| ConstDef -| StaticDef -| Module -| MacroCall -| ExternBlock - AttrInput = Literal | TokenTree -- cgit v1.2.3