From 8cb16db91ad20987ffc656df763dcd5e82908aa9 Mon Sep 17 00:00:00 2001 From: Sam Vervaeck Date: Tue, 26 May 2020 21:04:06 +0200 Subject: [PATCH] stdlib/lang/bolt.bolt: Rename 'Syntax' to 'Node' --- stdlib/lang/bolt.bolt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stdlib/lang/bolt.bolt b/stdlib/lang/bolt.bolt index be19b5cc9..eefb256a1 100644 --- a/stdlib/lang/bolt.bolt +++ b/stdlib/lang/bolt.bolt @@ -59,8 +59,8 @@ mod Bolt::Lang { } } - fn eliminate_match_rule(stx: Syntax) { - match stx { + fn eliminate_match_rule(node: Node) { + match node { quote { match $value: Expression { $patterns @ ( $pattern: Pattern => $expression: Expression ),* (,)? @@ -73,7 +73,7 @@ mod Bolt::Lang { value ) }); - return ConditionalStatement::from_node(stx, cases); + return ConditionalStatement::from_node(node, cases); } } }