Skip to content

[master-next] [lldb] Update for removal of SourceFile::addImports #1097

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

hamishknight
Copy link

master-next cherry-pick of #1079.

This appears to have gotten out of sync with
swift/master at some point. Make sure to disable
delayed body parsing.
Additional modules to implicitly import now need to be
provided upfront when constructing the ModuleDecl. To
enable this change, split `PerformUserImport` into
`GetImplicitImports`, which retrieves the necessary
modules to import, and `CacheUserImports`, which deals
with caching the imports from the parsed source file
such that they're available to future expression
evaluations.

This commit also renames `PerformAutoImport` to
`GetCompileUnitImports` to better match the other
two methods.
Imports need to be resolved before the SwiftASTManipulator
is run, as it can query interface types.
@hamishknight hamishknight merged commit 27900fc into swiftlang:swift/master-next Apr 20, 2020
@hamishknight hamishknight deleted the next-quarters-balance-of-payments branch April 20, 2020 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant