mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Rename StructDef -> Struct
This commit is contained in:
parent
1ae4721c9c
commit
216a5344c8
63 changed files with 163 additions and 163 deletions
|
@ -307,7 +307,7 @@ fn generate_syntax_kinds(grammar: KindsSrc<'_>) -> Result<String> {
|
|||
|
||||
let ast = quote! {
|
||||
#![allow(bad_style, missing_docs, unreachable_pub)]
|
||||
/// The kind of syntax node, e.g. `IDENT`, `USE_KW`, or `STRUCT_DEF`.
|
||||
/// The kind of syntax node, e.g. `IDENT`, `USE_KW`, or `STRUCT`.
|
||||
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
|
||||
#[repr(u16)]
|
||||
pub enum SyntaxKind {
|
||||
|
|
|
@ -13,7 +13,7 @@ Item =
|
|||
| MacroCall
|
||||
| Module
|
||||
| StaticDef
|
||||
| StructDef
|
||||
| Struct
|
||||
| TraitDef
|
||||
| TypeAlias
|
||||
| Union
|
||||
|
@ -76,7 +76,7 @@ TypeAlias =
|
|||
Attr* Visibility? 'default'? 'type' Name GenericParamList? (':' TypeBoundList?)? WhereClause?
|
||||
'=' TypeRef ';'
|
||||
|
||||
StructDef =
|
||||
Struct =
|
||||
Attr* Visibility? 'struct' Name GenericParamList? (
|
||||
WhereClause? (RecordFieldList | ';')
|
||||
| TupleFieldList WhereClause? ';'
|
||||
|
@ -453,7 +453,7 @@ MetaItem =
|
|||
Path '=' AttrInput nested_meta_items:MetaItem*
|
||||
|
||||
AdtDef =
|
||||
StructDef
|
||||
Struct
|
||||
| EnumDef
|
||||
| Union
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue