From d549f6164c89bed66432ab5e5ea6e38cc8b4da6b Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 30 Jul 2020 17:10:44 +0200 Subject: Simplify codegen --- xtask/src/ast_src.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'xtask/src/ast_src.rs') diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index ad661218f..0e3d89a07 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs @@ -242,14 +242,13 @@ pub(crate) struct AstNodeSrc { #[derive(Debug, Eq, PartialEq)] pub(crate) enum Field { Token(String), - Node { name: String, src: FieldSrc }, + Node { name: String, ty: String, valence: Valence }, } #[derive(Debug, Eq, PartialEq)] -pub(crate) enum FieldSrc { - Shorthand, - Optional(String), - Many(String), +pub(crate) enum Valence { + Optional, + Many, } #[derive(Debug)] -- cgit v1.2.3