diff options
author | Aleksey Kladov <[email protected]> | 2020-07-30 16:52:53 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-30 16:52:53 +0100 |
commit | 609680ef97dbf82c07b6b06e21aa366423892304 (patch) | |
tree | 34296539101d8db4a484c472a45a1e30503791ef /xtask | |
parent | 216a5344c8ef3c3e430d2761dc8b1a7b60250a15 (diff) |
Rename EnumDef -> Enum
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/ast_src.rs | 2 | ||||
-rw-r--r-- | xtask/src/codegen/rust.ungram | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index e8a90636e..fe8381e41 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs | |||
@@ -95,7 +95,7 @@ pub(crate) const KINDS_SRC: KindsSrc = KindsSrc { | |||
95 | "SOURCE_FILE", | 95 | "SOURCE_FILE", |
96 | "STRUCT", | 96 | "STRUCT", |
97 | "UNION", | 97 | "UNION", |
98 | "ENUM_DEF", | 98 | "ENUM", |
99 | "FN", | 99 | "FN", |
100 | "RET_TYPE", | 100 | "RET_TYPE", |
101 | "EXTERN_CRATE", | 101 | "EXTERN_CRATE", |
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index d038c5c5a..9c6797cb7 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram | |||
@@ -5,7 +5,7 @@ SourceFile = | |||
5 | 5 | ||
6 | Item = | 6 | Item = |
7 | ConstDef | 7 | ConstDef |
8 | | EnumDef | 8 | | Enum |
9 | | ExternBlock | 9 | | ExternBlock |
10 | | ExternCrate | 10 | | ExternCrate |
11 | | Fn | 11 | | Fn |
@@ -98,11 +98,7 @@ FieldList = | |||
98 | RecordFieldList | 98 | RecordFieldList |
99 | | TupleFieldList | 99 | | TupleFieldList |
100 | 100 | ||
101 | Union = | 101 | Enum = |
102 | Attr* Visibility? 'union' Name GenericParamList? WhereClause? | ||
103 | RecordFieldList | ||
104 | |||
105 | EnumDef = | ||
106 | Attr* Visibility? 'enum' Name GenericParamList? WhereClause? | 102 | Attr* Visibility? 'enum' Name GenericParamList? WhereClause? |
107 | variant_list:EnumVariantList | 103 | variant_list:EnumVariantList |
108 | 104 | ||
@@ -112,6 +108,10 @@ EnumVariantList = | |||
112 | EnumVariant = | 108 | EnumVariant = |
113 | Attr* Visibility? Name FieldList ('=' Expr)? | 109 | Attr* Visibility? Name FieldList ('=' Expr)? |
114 | 110 | ||
111 | Union = | ||
112 | Attr* Visibility? 'union' Name GenericParamList? WhereClause? | ||
113 | RecordFieldList | ||
114 | |||
115 | TraitDef = | 115 | TraitDef = |
116 | Attr* Visibility? 'unsafe'? 'auto'? 'trait' Name GenericParamList | 116 | Attr* Visibility? 'unsafe'? 'auto'? 'trait' Name GenericParamList |
117 | (':' TypeBoundList?)? WhereClause | 117 | (':' TypeBoundList?)? WhereClause |
@@ -454,7 +454,7 @@ MetaItem = | |||
454 | 454 | ||
455 | AdtDef = | 455 | AdtDef = |
456 | Struct | 456 | Struct |
457 | | EnumDef | 457 | | Enum |
458 | | Union | 458 | | Union |
459 | 459 | ||
460 | TypeRef = | 460 | TypeRef = |