We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d0e5270 + fb30e9e commit 2101029Copy full SHA for 2101029
lib/Parse/ParseExpr.cpp
@@ -2483,8 +2483,9 @@ parseClosureSignatureIfPresent(SourceRange &bracketRange,
2483
2484
SyntaxParsingContext CaptureCtx(SyntaxContext,
2485
SyntaxKind::ClosureCaptureSignature);
2486
- bracketRange = SourceRange(consumeToken(tok::l_square),
2487
- consumeToken(tok::r_square));
+ SourceLoc lBracketLoc = consumeToken(tok::l_square);
+ SourceLoc rBracketLoc = consumeToken(tok::r_square);
2488
+ bracketRange = SourceRange(lBracketLoc, rBracketLoc);
2489
} else if (Tok.is(tok::l_square) && !peekToken().is(tok::r_square)) {
2490
2491
0 commit comments