mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NameLookup] Plumb source location arguments through all name lookup APIs.
This source location will be used to determine whether to add a name lookup option to exclude macro expansions when the name lookup request is constructed. Currently, the source location argument is unused.
This commit is contained in:
@@ -281,10 +281,10 @@ void namelookup::lookupInModule(const DeclContext *moduleOrFile,
|
||||
NLKind lookupKind,
|
||||
ResolutionKind resolutionKind,
|
||||
const DeclContext *moduleScopeContext,
|
||||
NLOptions options) {
|
||||
SourceLoc loc, NLOptions options) {
|
||||
auto &ctx = moduleOrFile->getASTContext();
|
||||
LookupInModuleRequest req(moduleOrFile, name, lookupKind, resolutionKind,
|
||||
moduleScopeContext, options);
|
||||
moduleScopeContext, loc, options);
|
||||
auto results = evaluateOrDefault(ctx.evaluator, req, {});
|
||||
decls.append(results.begin(), results.end());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user