Rename scope_changed to scope_may_be_changed.

This commit is contained in:
Stephen Chung
2021-07-04 16:31:01 +08:00
parent b4da054bab
commit ab21ba703f
3 changed files with 10 additions and 10 deletions

View File

@@ -1051,7 +1051,7 @@ fn optimize_expr(expr: &mut Expr, state: &mut State, _chaining: bool) {
// Custom syntax
Expr::Custom(x, _) => {
if x.scope_changed {
if x.scope_may_be_changed {
state.propagate_constants = false;
}
x.keywords.iter_mut().for_each(|expr| optimize_expr(expr, state, false));