mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1459384 - Move some overscoped variables inside the retry-for-comment loop. r=arai
--HG-- extra : rebase_source : 5fffc750cac3bb69031fd9b151dcb0fe340c0df7
This commit is contained in:
parent
213f86e0e2
commit
3be21c5482
@ -1512,12 +1512,7 @@ MOZ_MUST_USE bool
|
||||
TokenStreamSpecific<CharT, AnyCharsAccess>::getTokenInternal(TokenKind* const ttp,
|
||||
const Modifier modifier)
|
||||
{
|
||||
int c;
|
||||
Token* tp;
|
||||
FirstCharKind c1kind;
|
||||
const CharT* numStart;
|
||||
bool hasExp;
|
||||
DecimalPoint decimalPoint;
|
||||
|
||||
auto FinishToken = [this, &tp,
|
||||
#ifdef DEBUG
|
||||
@ -1568,6 +1563,12 @@ TokenStreamSpecific<CharT, AnyCharsAccess>::getTokenInternal(TokenKind* const tt
|
||||
// This loop runs more than once only when whitespace or comments are
|
||||
// encountered.
|
||||
do {
|
||||
int c;
|
||||
FirstCharKind c1kind;
|
||||
bool hasExp;
|
||||
const CharT* numStart;
|
||||
DecimalPoint decimalPoint;
|
||||
|
||||
if (MOZ_UNLIKELY(!sourceUnits.hasRawChars())) {
|
||||
tp = newToken(0);
|
||||
tp->type = TokenKind::Eof;
|
||||
|
Loading…
Reference in New Issue
Block a user