diff options
author | Aleksey Kladov <[email protected]> | 2020-07-30 16:10:44 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-30 16:10:44 +0100 |
commit | d549f6164c89bed66432ab5e5ea6e38cc8b4da6b (patch) | |
tree | 2d9a5573f667fd15d27cffc471d98612a7343d1e /xtask/src/ast_src.rs | |
parent | a257fd06b36d2e7310e5e38823f6636343a37331 (diff) |
Simplify codegen
Diffstat (limited to 'xtask/src/ast_src.rs')
-rw-r--r-- | xtask/src/ast_src.rs | 9 |
1 files changed, 4 insertions, 5 deletions
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 { | |||
242 | #[derive(Debug, Eq, PartialEq)] | 242 | #[derive(Debug, Eq, PartialEq)] |
243 | pub(crate) enum Field { | 243 | pub(crate) enum Field { |
244 | Token(String), | 244 | Token(String), |
245 | Node { name: String, src: FieldSrc }, | 245 | Node { name: String, ty: String, valence: Valence }, |
246 | } | 246 | } |
247 | 247 | ||
248 | #[derive(Debug, Eq, PartialEq)] | 248 | #[derive(Debug, Eq, PartialEq)] |
249 | pub(crate) enum FieldSrc { | 249 | pub(crate) enum Valence { |
250 | Shorthand, | 250 | Optional, |
251 | Optional(String), | 251 | Many, |
252 | Many(String), | ||
253 | } | 252 | } |
254 | 253 | ||
255 | #[derive(Debug)] | 254 | #[derive(Debug)] |