mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
simplify Parser::isStartOfStmt: just use the current token instead of having
all of the clients pass in the current token. NFC. Swift SVN r16601
This commit is contained in:
@@ -46,8 +46,7 @@ static DefaultArgumentKind getDefaultArgKind(ExprHandle *init) {
|
||||
static void recoverFromBadSelectorArgument(Parser &P) {
|
||||
while (P.Tok.isNot(tok::eof) && P.Tok.isNot(tok::r_paren) &&
|
||||
P.Tok.isNot(tok::l_brace) && P.Tok.isNot(tok::r_brace) &&
|
||||
!P.isStartOfStmt(P.Tok) &&
|
||||
!P.isStartOfDecl()) {
|
||||
!P.isStartOfStmt() && !P.isStartOfDecl()) {
|
||||
P.skipSingle();
|
||||
}
|
||||
P.consumeIf(tok::r_paren);
|
||||
|
||||
Reference in New Issue
Block a user