From a5172e103b86437f5cfbbe55902e9278a16d1e6f Mon Sep 17 00:00:00 2001 From: Emmanuel Benoit Date: Mon, 9 Jan 2023 06:56:47 +0100 Subject: [PATCH] Dumper - Set expressions --- src/dumper.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/dumper.rs b/src/dumper.rs index 1e7b8f6..2c411c2 100644 --- a/src/dumper.rs +++ b/src/dumper.rs @@ -269,6 +269,14 @@ fn dump_expr_node(dumper: &mut Dumper, expr: &ExprNode) { dumper.current_line().push('.'); dumper.current_line().push_str(&get_expr.name.lexeme); } + + ExprNode::Set(set_expr) => { + dump_expr_node(dumper, &set_expr.instance); + dumper.current_line().push('.'); + dumper.current_line().push_str(&set_expr.name.lexeme); + dumper.current_line().push_str(" = "); + dump_expr_node(dumper, &set_expr.value); + } } }