parser: Set previous and unnormalized tokens in couple more places
This commit is contained in:
parent
d33b3562e5
commit
ed2fd28d38
3 changed files with 9 additions and 7 deletions
|
@ -172,6 +172,7 @@ fn maybe_source_file_to_parser(
|
|||
parser.unclosed_delims = unclosed_delims;
|
||||
if parser.token == token::Eof && parser.token.span.is_dummy() {
|
||||
parser.token.span = Span::new(end_pos, end_pos, parser.token.span.ctxt());
|
||||
assert!(parser.unnormalized_token.is_none());
|
||||
}
|
||||
|
||||
Ok(parser)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue