mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Test and improve parser error recovery for closures.
Swift SVN r5203
This commit is contained in:
@@ -152,6 +152,10 @@ SourceLoc Parser::consumeToken() {
|
||||
return Loc;
|
||||
}
|
||||
|
||||
SourceLoc Parser::getEndOfPreviousLoc() {
|
||||
return Lexer::getLocForEndOfToken(SourceMgr, PreviousLoc);
|
||||
}
|
||||
|
||||
SourceLoc Parser::consumeStartingLess() {
|
||||
assert(startsWithLess(Tok) && "Token does not start with '<'");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user