fix(frontends/lean): save 'choice' position
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
6085a54416
commit
656bcd55ed
2 changed files with 2 additions and 2 deletions
|
@ -317,6 +317,6 @@ expr parse_calc(parser & p) {
|
|||
buffer<expr> choices;
|
||||
for (auto const & s : steps)
|
||||
choices.push_back(step_proof(s));
|
||||
return mk_choice(choices.size(), choices.data());
|
||||
return p.save_pos(mk_choice(choices.size(), choices.data()), pos);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -803,7 +803,7 @@ expr parser::parse_notation(parse_table t, expr * left) {
|
|||
expr r = instantiate_rev(copy_with_new_pos(a, p), args.size(), args.data());
|
||||
cs.push_back(r);
|
||||
}
|
||||
return mk_choice(cs.size(), cs.data());
|
||||
return save_pos(mk_choice(cs.size(), cs.data()), p);
|
||||
}
|
||||
|
||||
expr parser::parse_nud_notation() {
|
||||
|
|
Loading…
Reference in a new issue