Do not optimize AST for dump_ast.

This commit is contained in:
Stephen Chung 2020-03-12 12:39:33 +08:00
parent 4662b9bd0c
commit 66edd28fb3

View File

@ -229,9 +229,9 @@ fn optimize_expr(expr: Expr, changed: &mut bool) -> Expr {
), ),
}, },
// Expr::FunctionCall(id, args, def_value, pos) if id == KEYWORD_DUMP_AST => { Expr::FunctionCall(id, args, def_value, pos) if id == KEYWORD_DUMP_AST => {
// Expr::FunctionCall(id, args, def_value, pos) Expr::FunctionCall(id, args, def_value, pos)
// } }
Expr::FunctionCall(id, args, def_value, pos) => { Expr::FunctionCall(id, args, def_value, pos) => {
let original_len = args.len(); let original_len = args.len();