diff options
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)] |