diff options
author | Aleksey Kladov <[email protected]> | 2020-07-30 16:56:53 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-30 16:56:53 +0100 |
commit | 1766aae145c6925a33e427f2fe6ef2a56c301665 (patch) | |
tree | dfcf22990794a5990602a468b862d544fbe63f0a /xtask/src | |
parent | 609680ef97dbf82c07b6b06e21aa366423892304 (diff) |
Rename EnumVariant -> Variant
Diffstat (limited to 'xtask/src')
-rw-r--r-- | xtask/src/ast_src.rs | 4 | ||||
-rw-r--r-- | xtask/src/codegen/rust.ungram | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index fe8381e41..94f4d17aa 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs | |||
@@ -179,12 +179,12 @@ pub(crate) const KINDS_SRC: KindsSrc = KindsSrc { | |||
179 | "BIN_EXPR", | 179 | "BIN_EXPR", |
180 | "EXTERN_BLOCK", | 180 | "EXTERN_BLOCK", |
181 | "EXTERN_ITEM_LIST", | 181 | "EXTERN_ITEM_LIST", |
182 | "ENUM_VARIANT", | 182 | "VARIANT", |
183 | "RECORD_FIELD_LIST", | 183 | "RECORD_FIELD_LIST", |
184 | "RECORD_FIELD", | 184 | "RECORD_FIELD", |
185 | "TUPLE_FIELD_LIST", | 185 | "TUPLE_FIELD_LIST", |
186 | "TUPLE_FIELD", | 186 | "TUPLE_FIELD", |
187 | "ENUM_VARIANT_LIST", | 187 | "VARIANT_LIST", |
188 | "ITEM_LIST", | 188 | "ITEM_LIST", |
189 | "ASSOC_ITEM_LIST", | 189 | "ASSOC_ITEM_LIST", |
190 | "ATTR", | 190 | "ATTR", |
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index 9c6797cb7..48d4f4b4a 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram | |||
@@ -100,12 +100,12 @@ FieldList = | |||
100 | 100 | ||
101 | Enum = | 101 | Enum = |
102 | Attr* Visibility? 'enum' Name GenericParamList? WhereClause? | 102 | Attr* Visibility? 'enum' Name GenericParamList? WhereClause? |
103 | variant_list:EnumVariantList | 103 | VariantList |
104 | 104 | ||
105 | EnumVariantList = | 105 | VariantList = |
106 | '{' variants:EnumVariant* '}' | 106 | '{' Variant* '}' |
107 | 107 | ||
108 | EnumVariant = | 108 | Variant = |
109 | Attr* Visibility? Name FieldList ('=' Expr)? | 109 | Attr* Visibility? Name FieldList ('=' Expr)? |
110 | 110 | ||
111 | Union = | 111 | Union = |