mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Finalize impl Grammar
This commit is contained in:
parent
c83467796b
commit
c5798c4d75
54 changed files with 103 additions and 100 deletions
|
@ -9,7 +9,7 @@ Item =
|
|||
| ExternBlock
|
||||
| ExternCrate
|
||||
| Fn
|
||||
| ImplDef
|
||||
| Impl
|
||||
| MacroCall
|
||||
| Module
|
||||
| Static
|
||||
|
@ -131,9 +131,12 @@ Trait =
|
|||
AssocItemList =
|
||||
'{' AssocItem* '}'
|
||||
|
||||
ImplDef =
|
||||
Attr* Visibility? 'const'? 'default'? 'unsafe'? 'impl' GenericParamList? '!'? 'for'
|
||||
WhereClause?
|
||||
Impl =
|
||||
Attr* Visibility?
|
||||
'default'? 'unsafe'? 'impl' 'const'? GenericParamList? (
|
||||
TypeRef
|
||||
| '!'? TypeRef 'for' TypeRef
|
||||
) WhereClause?
|
||||
AssocItemList
|
||||
|
||||
ParenType =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue