@@ -445,28 +445,28 @@ void lookupInModule(ModuleDecl *module, ModuleDecl::AccessPathTy accessPath,
445
445
LazyResolver *typeResolver,
446
446
const DeclContext *moduleScopeContext,
447
447
ArrayRef<ModuleDecl::ImportedModule> extraImports = {});
448
-
449
- template <typename Fn>
450
- void forAllVisibleModules (const DeclContext *DC, const Fn &fn) {
451
- DeclContext *moduleScope = DC->getModuleScopeContext ();
452
- if (auto file = dyn_cast<FileUnit>(moduleScope))
453
- file->forAllVisibleModules (fn);
454
- else
455
- cast<ModuleDecl>(moduleScope)-> forAllVisibleModules ( ModuleDecl::AccessPathTy (), fn);
456
- }
457
-
458
- // / Only name lookup has gathered a set of results, perform any necessary
459
- // / steps to prune the result set before returning it to the caller.
460
- bool finishLookup ( const DeclContext *dc, NLOptions options,
461
- SmallVectorImpl<ValueDecl *> &decls);
462
-
463
- template < typename Result>
464
- void filterForDiscriminator (SmallVectorImpl< Result> &results,
465
- DebuggerClient *debugClient);
466
-
467
- void recordLookupOfTopLevelName (DeclContext *topLevelContext,
468
- DeclName name,
469
- bool isCascading);
448
+
449
+ template <typename Fn>
450
+ void forAllVisibleModules (const DeclContext *DC, const Fn &fn) {
451
+ DeclContext *moduleScope = DC->getModuleScopeContext ();
452
+ if (auto file = dyn_cast<FileUnit>(moduleScope))
453
+ file->forAllVisibleModules (fn);
454
+ else
455
+ cast<ModuleDecl>(moduleScope)
456
+ -> forAllVisibleModules ( ModuleDecl::AccessPathTy (), fn);
457
+ }
458
+
459
+ // / Only name lookup has gathered a set of results, perform any necessary
460
+ // / steps to prune the result set before returning it to the caller.
461
+ bool finishLookup ( const DeclContext *dc, NLOptions options,
462
+ SmallVectorImpl<ValueDecl *> &decls);
463
+
464
+ template < typename Result>
465
+ void filterForDiscriminator (SmallVectorImpl<Result> &results,
466
+ DebuggerClient *debugClient);
467
+
468
+ void recordLookupOfTopLevelName (DeclContext *topLevelContext, DeclName name,
469
+ bool isCascading);
470
470
471
471
} // end namespace namelookup
472
472
0 commit comments