We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dbcf23 commit 8ea88b7Copy full SHA for 8ea88b7
lib/Parse/ParseDecl.cpp
@@ -1632,6 +1632,9 @@ Parser::parseAvailabilityMacro(SmallVectorImpl<AvailabilitySpec *> &Specs) {
1632
if (NameMatch == Map.end())
1633
return makeParserSuccess(); // No match, it could be a standard platform.
1634
1635
+ SyntaxParsingContext VersionRestrictionContext(
1636
+ SyntaxContext, SyntaxKind::AvailabilityVersionRestriction);
1637
+
1638
consumeToken();
1639
1640
llvm::VersionTuple Version;
0 commit comments