@@ -5525,15 +5525,12 @@ class Parser {
5525
5525
next = token.next;
5526
5526
}
5527
5527
5528
- TypeContinuation typeContinuation;
5529
5528
Token varFinalOrConst;
5530
5529
if (isModifier (next)) {
5531
5530
if (optional ('var' , next)) {
5532
- typeContinuation = TypeContinuation .OptionalAfterVar ;
5533
5531
varFinalOrConst = token = token.next;
5534
5532
next = token.next;
5535
5533
} else if (optional ('final' , next) || optional ('const' , next)) {
5536
- typeContinuation = TypeContinuation .Optional ;
5537
5534
varFinalOrConst = token = token.next;
5538
5535
next = token.next;
5539
5536
}
@@ -5542,13 +5539,11 @@ class Parser {
5542
5539
// Recovery
5543
5540
ModifierRecoveryContext2 modifierContext =
5544
5541
new ModifierRecoveryContext2 (this );
5545
- token = modifierContext.parseVariableDeclarationModifiers (
5546
- token, typeContinuation,
5542
+ token = modifierContext.parseVariableDeclarationModifiers (token,
5547
5543
varFinalOrConst: varFinalOrConst);
5548
5544
next = token.next;
5549
5545
5550
5546
varFinalOrConst = modifierContext.varFinalOrConst;
5551
- typeContinuation = modifierContext.typeContinuation;
5552
5547
modifierContext = null ;
5553
5548
}
5554
5549
}
@@ -5602,15 +5597,12 @@ class Parser {
5602
5597
token = parseMetadataStar (token);
5603
5598
Token next = token.next;
5604
5599
5605
- TypeContinuation typeContinuation;
5606
5600
Token varFinalOrConst;
5607
5601
if (isModifier (next)) {
5608
5602
if (optional ('var' , next)) {
5609
- typeContinuation = TypeContinuation .OptionalAfterVar ;
5610
5603
varFinalOrConst = token = token.next;
5611
5604
next = token.next;
5612
5605
} else if (optional ('final' , next) || optional ('const' , next)) {
5613
- typeContinuation = TypeContinuation .Optional ;
5614
5606
varFinalOrConst = token = token.next;
5615
5607
next = token.next;
5616
5608
}
@@ -5619,12 +5611,10 @@ class Parser {
5619
5611
// Recovery
5620
5612
ModifierRecoveryContext2 modifierContext =
5621
5613
new ModifierRecoveryContext2 (this );
5622
- token = modifierContext.parseVariableDeclarationModifiers (
5623
- token, typeContinuation,
5614
+ token = modifierContext.parseVariableDeclarationModifiers (token,
5624
5615
varFinalOrConst: varFinalOrConst);
5625
5616
5626
5617
varFinalOrConst = modifierContext.varFinalOrConst;
5627
- typeContinuation = modifierContext.typeContinuation;
5628
5618
modifierContext = null ;
5629
5619
}
5630
5620
}
0 commit comments