mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ASTScopes] Remove ModuleDecl param from findChildContaining
This is no longer necessary.
This commit is contained in:
@@ -286,8 +286,7 @@ void ASTSourceFileScope::expandFunctionBody(AbstractFunctionDecl *AFD) {
|
||||
auto sr = AFD->getOriginalBodySourceRange();
|
||||
if (sr.isInvalid())
|
||||
return;
|
||||
ASTScopeImpl *bodyScope =
|
||||
findInnermostEnclosingScope(AFD->getParentModule(), sr.Start, nullptr);
|
||||
ASTScopeImpl *bodyScope = findInnermostEnclosingScope(sr.Start, nullptr);
|
||||
if (!bodyScope->getWasExpanded())
|
||||
bodyScope->expandAndBeCurrent(*scopeCreator);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user