Merge pull request #64854 from DougGregor/top-level-macro-lookup

This commit is contained in:
Doug Gregor
2023-04-03 06:50:39 -07:00
committed by GitHub
18 changed files with 116 additions and 38 deletions

View File

@@ -733,8 +733,19 @@ public:
///
/// This does a simple local lookup, not recursively looking through imports.
void lookupValue(DeclName Name, NLKind LookupKind,
OptionSet<ModuleLookupFlags> Flags,
SmallVectorImpl<ValueDecl*> &Result) const;
/// Look up a (possibly overloaded) value set at top-level scope
/// (but with the specified access path, which may come from an import decl)
/// within the current module.
///
/// This does a simple local lookup, not recursively looking through imports.
void lookupValue(DeclName Name, NLKind LookupKind,
SmallVectorImpl<ValueDecl*> &Result) const {
lookupValue(Name, LookupKind, {}, Result);
}
/// Look up a local type declaration by its mangled name.
///
/// This does a simple local lookup, not recursively looking through imports.