Dumper - Set expressions

This commit is contained in:
Emmanuel BENOîT 2023-01-09 06:56:47 +01:00
parent 2bdf675090
commit a5172e103b

View file

@ -269,6 +269,14 @@ fn dump_expr_node(dumper: &mut Dumper, expr: &ExprNode) {
dumper.current_line().push('.'); dumper.current_line().push('.');
dumper.current_line().push_str(&get_expr.name.lexeme); 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);
}
} }
} }