AST - Refactored variable reference expressions

This commit is contained in:
Emmanuel BENOîT 2023-01-09 07:43:45 +01:00
parent 75387c5ac4
commit bb2765d057
2 changed files with 12 additions and 7 deletions

View file

@ -217,8 +217,8 @@ fn dump_expr_node(dumper: &mut Dumper, expr: &ExprNode) {
dumper.current_line().push_str(&value.lexeme);
}
ExprNode::Variable { name, id: _ } => {
dumper.current_line().push_str(&name.lexeme);
ExprNode::Variable(var) => {
dumper.current_line().push_str(&var.token.lexeme);
}
ExprNode::Lambda { params, body } => {