Update last_span in replace_token
This commit is contained in:
parent
18356675e5
commit
0d80de0dfa
1 changed files with 1 additions and 0 deletions
|
@ -770,6 +770,7 @@ impl Parser {
|
||||||
next: token::Token,
|
next: token::Token,
|
||||||
lo: BytePos,
|
lo: BytePos,
|
||||||
hi: BytePos) {
|
hi: BytePos) {
|
||||||
|
self.last_span = mk_sp(self.span.lo, lo);
|
||||||
self.token = next;
|
self.token = next;
|
||||||
self.span = mk_sp(lo, hi);
|
self.span = mk_sp(lo, hi);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue