mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Rename ModuleItem -> Item
This commit is contained in:
parent
16caadb404
commit
6636f56e79
17 changed files with 547 additions and 554 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue