[Sema] Re-enable placeholder type parsing and folding

This commit is contained in:
Frederick Kellison-Linn
2021-06-24 10:50:39 -04:00
parent 990fc4b815
commit c305cb01a8
3 changed files with 21 additions and 6 deletions

View File

@@ -152,10 +152,6 @@ static ParserStatus parseDefaultArgument(
/// Determine whether we are at the start of a parameter name when
/// parsing a parameter.
bool Parser::startsParameterName(bool isClosure) {
// '_' cannot be a type, so it must be a parameter name.
if (Tok.is(tok::kw__))
return true;
// To have a parameter name here, we need a name.
if (!Tok.canBeArgumentLabel())
return false;