parser: Keep current and previous tokens precisely
including their unnormalized forms. Add more documentation for them.
This commit is contained in:
parent
1ad6b5e1e6
commit
cd7a428b5e
3 changed files with 54 additions and 26 deletions
|
@ -134,7 +134,7 @@ impl<'a> Parser<'a> {
|
|||
path
|
||||
});
|
||||
|
||||
let lo = self.meta_var_span.unwrap_or(self.token.span);
|
||||
let lo = self.unnormalized_token().span;
|
||||
let mut segments = Vec::new();
|
||||
let mod_sep_ctxt = self.token.span.ctxt();
|
||||
if self.eat(&token::ModSep) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue