stdlib/lang/bolt.bolt: Rename 'Syntax' to 'Node'

This commit is contained in:
Sam Vervaeck 2020-05-26 21:04:06 +02:00
parent ffb0e2a8c0
commit 8cb16db91a

View file

@ -59,8 +59,8 @@ mod Bolt::Lang {
} }
} }
fn eliminate_match_rule(stx: Syntax) { fn eliminate_match_rule(node: Node) {
match stx { match node {
quote { quote {
match $value: Expression { match $value: Expression {
$patterns @ ( $pattern: Pattern => $expression: Expression ),* (,)? $patterns @ ( $pattern: Pattern => $expression: Expression ),* (,)?
@ -73,7 +73,7 @@ mod Bolt::Lang {
value value
) )
}); });
return ConditionalStatement::from_node(stx, cases); return ConditionalStatement::from_node(node, cases);
} }
} }
} }