Skip to content

Commit 2560aed

Browse files
committed
Rename experimental feature to ParserASTGen
1 parent e21c463 commit 2560aed

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

include/swift/Basic/Features.def

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,9 @@ EXPERIMENTAL_FEATURE(ParserSequenceFolding)
141141
/// Enables implicit some while also enabling existential `any`
142142
EXPERIMENTAL_FEATURE(ImplicitSome)
143143

144-
/// Parse using the Swift (swift-syntax) parser and use ASTGen.
145-
EXPERIMENTAL_FEATURE(SwiftParser)
144+
/// Parse using the Swift (swift-syntax) parser and use ASTGen to generate the
145+
/// corresponding syntax tree.
146+
EXPERIMENTAL_FEATURE(ParserASTGen)
146147

147148
#undef EXPERIMENTAL_FEATURE
148149
#undef UPCOMING_FEATURE

lib/AST/ASTPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3091,7 +3091,7 @@ static bool usesFeatureAdditiveArithmeticDerivedConformances(Decl *decl) {
30913091
return false;
30923092
}
30933093

3094-
static bool usesFeatureSwiftParser(Decl *decl) {
3094+
static bool usesFeatureParserASTGen(Decl *decl) {
30953095
return false;
30963096
}
30973097

lib/Parse/ParseDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ void Parser::parseTopLevel(SmallVectorImpl<Decl *> &decls) {
185185
StringRef contents =
186186
SourceMgr.extractText(SourceMgr.getRangeForBuffer(L->getBufferID()));
187187

188-
if (Context.LangOpts.hasFeature(Feature::SwiftParser)) {
188+
if (Context.LangOpts.hasFeature(Feature::ParserASTGen)) {
189189
parseTopLevelSwift(contents.data(), CurDeclContext, &Context, &decls, appendToVector);
190190

191191
for (auto decl : decls) {

0 commit comments

Comments
 (0)