Skip to content

Commit ac16d7c

Browse files
committed
Drop the Identifier List from Designated Type Parsing
This was never the correct way to model this because it drops the commas in the list. Instead just take the optional trailing identifier element if we have one.
1 parent 5e8dc12 commit ac16d7c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/Parse/ParseDecl.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8863,8 +8863,6 @@ Parser::parseDeclOperatorImpl(SourceLoc OperatorLoc, Identifier Name,
88638863
return makeParserCodeCompletionResult<OperatorDecl>();
88648864
}
88658865

8866-
SyntaxParsingContext ListCtxt(SyntaxContext, SyntaxKind::IdentifierList);
8867-
88688866
(void)parseIdentifier(groupName, groupLoc,
88698867
diag::operator_decl_expected_precedencegroup,
88708868
/*diagnoseDollarPrefix=*/false);

0 commit comments

Comments
 (0)