Skip to content

Commit ccf37e4

Browse files
Merge branch 'incrementalParsingBug' of https://github.com/CyrusNajmabadi/roslyn into incrementalParsingBug
2 parents 40e95d9 + b7212af commit ccf37e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Compilers/CSharp/Portable/Parser/LanguageParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9180,11 +9180,11 @@ private ForStatementSyntax ParseForStatement(SyntaxList<AttributeListSyntax> att
91809180
var openParen = this.EatToken(SyntaxKind.OpenParenToken);
91819181
var (variableDeclaration, initializers) = eatVariableDeclarationOrInitializers();
91829182

9183-
// Pulled out as we need to track this when parsing incrementors to place skipped tokens.
91849183
var firstSemicolonToken = eatCommaOrSemicolon();
91859184
var condition = this.CurrentToken.Kind is not SyntaxKind.SemicolonToken and not SyntaxKind.CommaToken
91869185
? this.ParseExpressionCore()
91879186
: null;
9187+
// Pulled out as we need to track this when parsing incrementors to place skipped tokens.
91889188
var secondSemicolonToken = eatCommaOrSemicolon();
91899189
// Do allow semicolons (with diagnostics) in the incrementors list. This allows us to consume
91909190
// accidental extra incrementors that should have been separated by commas.

0 commit comments

Comments
 (0)