Make Expr::position const.

This commit is contained in:
Stephen Chung
2021-06-29 18:41:03 +08:00
parent 08828dd8c1
commit 0346bb874b
5 changed files with 24 additions and 35 deletions

View File

@@ -2009,8 +2009,8 @@ impl Engine {
}
// `... ${...} ...`
Expr::InterpolatedString(x) => {
let mut pos = expr.position();
Expr::InterpolatedString(x, pos) => {
let mut pos = *pos;
let mut result: Dynamic = self.empty_string.clone().into();
for expr in x.iter() {