Split Parser::report into Parser::zeport (a temporary name) that uses

the current offset, and Parser::reportWithNode that derives it from a
Node.
This commit is contained in:
wolfbeast 2019-04-05 20:54:29 +02:00 committed by Roy Tam
commit e9ffb69b02
4 changed files with 198 additions and 209 deletions

View file

@ -577,6 +577,7 @@ class MOZ_STACK_CLASS TokenStream
*offset = pos.begin;
return true;
}
// This is like peekToken(), with one exception: if there is an EOL
// between the end of the current token and the start of the next token, it
// return true and store TOK_EOL in |*ttp|. In that case, no token with