Skip to content

Commit af59279

Browse files
author
David Ungar
authored
Merge pull request #26573 from davidungar/A-7-9-astscope-no-nesting
[NameLookup ASTScope] On-by-default.
2 parents c25de6a + 4a265a9 commit af59279

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/Basic/LangOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ namespace swift {
246246
/// Default is in \c ParseLangArgs
247247
///
248248
/// This is a staging flag; eventually it will be removed.
249-
bool EnableASTScopeLookup = false;
249+
bool EnableASTScopeLookup = true;
250250

251251
/// Someday, ASTScopeLookup will supplant lookup in the parser
252252
bool DisableParserLookup = false;

lib/AST/ASTScopeCreation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1750,7 +1750,7 @@ void ASTScopeImpl::reexpand(ScopeCreator &scopeCreator) {
17501750
auto astAncestorScopes = rescueASTAncestorScopesForReuseFromMeOrDescendants();
17511751
disownDescendants(scopeCreator);
17521752
// If the expansion recurses back into the tree for lookup, the ASTAncestor
1753-
// scopes will have already been rescued and won't be found! HERE
1753+
// scopes will have already been rescued and won't be found!
17541754
expandAndBeCurrent(scopeCreator);
17551755
replaceASTAncestorScopes(astAncestorScopes);
17561756
}

0 commit comments

Comments
 (0)