Update last_span in replace_token
This commit is contained in:
parent
18356675e5
commit
0d80de0dfa
@ -770,6 +770,7 @@ impl Parser {
|
||||
next: token::Token,
|
||||
lo: BytePos,
|
||||
hi: BytePos) {
|
||||
self.last_span = mk_sp(self.span.lo, lo);
|
||||
self.token = next;
|
||||
self.span = mk_sp(lo, hi);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user