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

@ -5,7 +5,7 @@ use super::*;
pub(super) fn struct_def(p: &mut Parser, m: Marker) {
assert!(p.at(T![struct]));
p.bump(T![struct]);
struct_or_union(p, m, T![struct], STRUCT_DEF);
struct_or_union(p, m, T![struct], STRUCT);
}
pub(super) fn union_def(p: &mut Parser, m: Marker) {

View file

@ -1,7 +1,7 @@
//! Generated file, do not edit by hand, see `xtask/src/codegen`
#![allow(bad_style, missing_docs, unreachable_pub)]
#[doc = r" The kind of syntax node, e.g. `IDENT`, `USE_KW`, or `STRUCT_DEF`."]
#[doc = r" 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 {
@ -123,7 +123,7 @@ pub enum SyntaxKind {
L_DOLLAR,
R_DOLLAR,
SOURCE_FILE,
STRUCT_DEF,
STRUCT,
UNION,
ENUM_DEF,
FN,