diff options
author | Aleksey Kladov <[email protected]> | 2020-07-29 23:23:03 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-29 23:23:03 +0100 |
commit | 6636f56e79b55f22b88094b7edaed6ec88880500 (patch) | |
tree | d042009ea61be66aee1710070c09893447847c9d /xtask | |
parent | 16caadb404de465d8ea1cb6a107740ef004f232b (diff) |
Rename ModuleItem -> Item
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/codegen/rust.ungram | 40 |
1 files changed, 20 insertions, 20 deletions
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 @@ | |||
1 | SourceFile = | 1 | SourceFile = |
2 | Attr* | 2 | Attr* |
3 | items:ModuleItem* | 3 | Item* |
4 | |||
5 | Item = | ||
6 | ConstDef | ||
7 | | EnumDef | ||
8 | | ExternBlock | ||
9 | | ExternCrateItem | ||
10 | | FnDef | ||
11 | | ImplDef | ||
12 | | MacroCall | ||
13 | | Module | ||
14 | | StaticDef | ||
15 | | StructDef | ||
16 | | TraitDef | ||
17 | | TypeAliasDef | ||
18 | | UnionDef | ||
19 | | UseItem | ||
4 | 20 | ||
5 | FnDef = | 21 | FnDef = |
6 | Attr* Visibility? Abi? 'const' 'default' 'async' 'unsafe' 'fn' Name TypeParamList? | 22 | Attr* Visibility? Abi? 'const' 'default' 'async' 'unsafe' 'fn' Name TypeParamList? |
@@ -59,7 +75,7 @@ Module = | |||
59 | ItemList = | 75 | ItemList = |
60 | '{' | 76 | '{' |
61 | AssocItem* | 77 | AssocItem* |
62 | items:ModuleItem* | 78 | Item* |
63 | '}' | 79 | '}' |
64 | 80 | ||
65 | ConstDef = | 81 | ConstDef = |
@@ -168,7 +184,7 @@ Label = | |||
168 | BlockExpr = | 184 | BlockExpr = |
169 | Attr* Label | 185 | Attr* Label |
170 | '{' | 186 | '{' |
171 | items:ModuleItem* | 187 | Item* |
172 | statements:Stmt* | 188 | statements:Stmt* |
173 | Expr? | 189 | Expr? |
174 | '}' | 190 | '}' |
@@ -316,7 +332,7 @@ TokenTree = | |||
316 | '(' ')' | '{' '}' | '[' ']' | 332 | '(' ')' | '{' '}' | '[' ']' |
317 | 333 | ||
318 | MacroItems = | 334 | MacroItems = |
319 | items:ModuleItem* | 335 | Item* |
320 | 336 | ||
321 | MacroStmts = | 337 | MacroStmts = |
322 | statements:Stmt* | 338 | statements:Stmt* |
@@ -454,22 +470,6 @@ AssocItem = | |||
454 | ExternItem = | 470 | ExternItem = |
455 | FnDef | StaticDef | 471 | FnDef | StaticDef |
456 | 472 | ||
457 | ModuleItem = | ||
458 | StructDef | ||
459 | | UnionDef | ||
460 | | EnumDef | ||
461 | | FnDef | ||
462 | | TraitDef | ||
463 | | TypeAliasDef | ||
464 | | ImplDef | ||
465 | | UseItem | ||
466 | | ExternCrateItem | ||
467 | | ConstDef | ||
468 | | StaticDef | ||
469 | | Module | ||
470 | | MacroCall | ||
471 | | ExternBlock | ||
472 | |||
473 | AttrInput = | 473 | AttrInput = |
474 | Literal | 474 | Literal |
475 | | TokenTree | 475 | | TokenTree |