mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
libSyntax: rename SyntaxParsingContext.setDiscard() to SyntaxParsingContext.setBackTracking(). NFC
This commit is contained in:
@@ -3546,7 +3546,7 @@ parseDeclTypeAlias(Parser::ParseDeclOptions Flags, DeclAttributes &Attributes) {
|
||||
}
|
||||
|
||||
if (Flags.contains(PD_InProtocol) && !genericParams && !Tok.is(tok::equal)) {
|
||||
TmpCtxt->setDiscard();
|
||||
TmpCtxt->setBackTracking();
|
||||
TmpCtxt.reset();
|
||||
// If we're in a protocol and don't see an '=' this looks like leftover Swift 2
|
||||
// code intending to be an associatedtype.
|
||||
@@ -4134,7 +4134,7 @@ bool Parser::parseGetSetImpl(ParseDeclOptions Flags,
|
||||
// that the diagnostics point to correct tokens.
|
||||
if (BeginParserPosition.isValid()) {
|
||||
backtrackToPosition(BeginParserPosition);
|
||||
BacktrackCtxt->setDiscard();
|
||||
BacktrackCtxt->setBackTracking();
|
||||
BacktrackCtxt.reset();
|
||||
Attributes = DeclAttributes();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user