From 1766aae145c6925a33e427f2fe6ef2a56c301665 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 30 Jul 2020 17:56:53 +0200 Subject: Rename EnumVariant -> Variant --- xtask/src/ast_src.rs | 4 ++-- xtask/src/codegen/rust.ungram | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'xtask/src') 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 { "BIN_EXPR", "EXTERN_BLOCK", "EXTERN_ITEM_LIST", - "ENUM_VARIANT", + "VARIANT", "RECORD_FIELD_LIST", "RECORD_FIELD", "TUPLE_FIELD_LIST", "TUPLE_FIELD", - "ENUM_VARIANT_LIST", + "VARIANT_LIST", "ITEM_LIST", "ASSOC_ITEM_LIST", "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 = Enum = Attr* Visibility? 'enum' Name GenericParamList? WhereClause? - variant_list:EnumVariantList + VariantList -EnumVariantList = - '{' variants:EnumVariant* '}' +VariantList = + '{' Variant* '}' -EnumVariant = +Variant = Attr* Visibility? Name FieldList ('=' Expr)? Union = -- cgit v1.2.3