fix(frontends/lua/parser): typo
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
88235d2922
commit
f418491c70
1 changed files with 2 additions and 2 deletions
|
@ -888,7 +888,7 @@ class parser::imp {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void propagage_position(expr const & e, pos_info p) {
|
void propagate_position(expr const & e, pos_info p) {
|
||||||
for_each(e, [&](expr const & e, unsigned) {
|
for_each(e, [&](expr const & e, unsigned) {
|
||||||
if (m_expr_pos_info.find(e) == m_expr_pos_info.end()) {
|
if (m_expr_pos_info.find(e) == m_expr_pos_info.end()) {
|
||||||
save(e, p);
|
save(e, p);
|
||||||
|
@ -1006,7 +1006,7 @@ class parser::imp {
|
||||||
if (is_expr(L, -1)) {
|
if (is_expr(L, -1)) {
|
||||||
expr r = to_expr(L, -1);
|
expr r = to_expr(L, -1);
|
||||||
lua_pop(L, 1);
|
lua_pop(L, 1);
|
||||||
propagage_position(r, p);
|
propagate_position(r, p);
|
||||||
return r;
|
return r;
|
||||||
} else {
|
} else {
|
||||||
lua_pop(L, 1);
|
lua_pop(L, 1);
|
||||||
|
|
Loading…
Reference in a new issue