aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/ast_src.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-07-30 16:29:05 +0100
committerGitHub <[email protected]>2020-07-30 16:29:05 +0100
commit2496628c56415f4456803e4487f90bad96337d57 (patch)
tree869f53eae0bf8b27c43ab7b8722a061d680b7d86 /xtask/src/ast_src.rs
parent61d9d6caf89dd59af5435adecb5c76fe0bba42a1 (diff)
parent8ddbf06e39a13ed3f45e57d77727b7a35cec1749 (diff)
Merge #5600
5600: Finalize structs grammar r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'xtask/src/ast_src.rs')
-rw-r--r--xtask/src/ast_src.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs
index 0e3d89a07..47e9d0c21 100644
--- a/xtask/src/ast_src.rs
+++ b/xtask/src/ast_src.rs
@@ -242,11 +242,11 @@ pub(crate) struct AstNodeSrc {
242#[derive(Debug, Eq, PartialEq)] 242#[derive(Debug, Eq, PartialEq)]
243pub(crate) enum Field { 243pub(crate) enum Field {
244 Token(String), 244 Token(String),
245 Node { name: String, ty: String, valence: Valence }, 245 Node { name: String, ty: String, cardinality: Cardinality },
246} 246}
247 247
248#[derive(Debug, Eq, PartialEq)] 248#[derive(Debug, Eq, PartialEq)]
249pub(crate) enum Valence { 249pub(crate) enum Cardinality {
250 Optional, 250 Optional,
251 Many, 251 Many,
252} 252}