Revert "Preserve whitespace and comments during lexing as Trivia"

This reverts commit d6e2b58382.
This commit is contained in:
David Farler
2016-11-18 12:22:53 -08:00
parent 44f15558d6
commit f450f0ccdf
56 changed files with 1048 additions and 1816 deletions

View File

@@ -129,7 +129,7 @@ static bool startsParameterName(Parser &parser, bool isClosure) {
return false;
// If the next token can be an argument label or is ':', this is a name.
auto nextTok = parser.peekToken();
const auto &nextTok = parser.peekToken();
if (nextTok.is(tok::colon) || nextTok.canBeArgumentLabel())
return true;
@@ -302,7 +302,7 @@ Parser::parseParameterClause(SourceLoc &leftParenLoc,
{
BacktrackingScope backtrack(*this);
isBareType = canParseType() && Tok.isAny(tok::comma, tok::r_paren,
tok::equal);
tok::equal);
}
if (isBareType) {