mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Rename TypeAliasDef -> TypeAlias
This commit is contained in:
parent
1142112c70
commit
eb2f806344
65 changed files with 146 additions and 155 deletions
|
@ -15,7 +15,7 @@ Item =
|
|||
| StaticDef
|
||||
| StructDef
|
||||
| TraitDef
|
||||
| TypeAliasDef
|
||||
| TypeAlias
|
||||
| UnionDef
|
||||
| Use
|
||||
|
||||
|
@ -72,6 +72,10 @@ Param =
|
|||
RetType =
|
||||
'->' TypeRef
|
||||
|
||||
TypeAlias =
|
||||
Attr* Visibility? 'default'? 'type' Name TypeParamList? (':' TypeBoundList?)? WhereClause?
|
||||
'=' TypeRef ';'
|
||||
|
||||
StructDef =
|
||||
Attr* Visibility? 'struct' Name TypeParamList? (
|
||||
WhereClause? (RecordFieldDefList | ';')
|
||||
|
@ -124,10 +128,6 @@ StaticDef =
|
|||
Attr* Visibility? 'static'? 'mut'? 'static' Name ':' ascribed_type:TypeRef
|
||||
'=' body:Expr ';'
|
||||
|
||||
TypeAliasDef =
|
||||
Attr* Visibility? 'default'? 'type' Name TypeParamList? WhereClause? (':' TypeBoundList?)?
|
||||
'=' TypeRef ';'
|
||||
|
||||
ImplDef =
|
||||
Attr* Visibility? 'const'? 'default'? 'unsafe'? 'impl' TypeParamList? '!'? 'for'
|
||||
WhereClause?
|
||||
|
@ -474,7 +474,7 @@ TypeRef =
|
|||
|
||||
AssocItem =
|
||||
Fn
|
||||
| TypeAliasDef
|
||||
| TypeAlias
|
||||
| ConstDef
|
||||
| MacroCall
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue