Rename StructDef -> Struct

This commit is contained in:
Aleksey Kladov 2020-07-30 17:50:40 +02:00
parent 1ae4721c9c
commit 216a5344c8
63 changed files with 163 additions and 163 deletions

View file

@ -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 {

View file

@ -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