mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
clean up lookupType/lookupValue to only take an AccessPath instead of an import decl.
Strip of the module name implicit in the access path. Swift SVN r801
This commit is contained in:
@@ -27,7 +27,15 @@ namespace swift {
|
||||
class OneOfElementDecl;
|
||||
class NameAliasType;
|
||||
class TypeAliasDecl;
|
||||
class LookupCache;
|
||||
|
||||
/// NLKind - This is a specifier for the kind of name lookup being performed
|
||||
/// by various query methods.
|
||||
enum class NLKind {
|
||||
UnqualifiedLookup,
|
||||
QualifiedLookup,
|
||||
DotLookup
|
||||
};
|
||||
|
||||
/// Module - A unit of modularity. The current translation unit is a
|
||||
/// module, as is an imported module.
|
||||
@@ -35,7 +43,6 @@ class Module : public DeclContext {
|
||||
public:
|
||||
ASTContext &Ctx;
|
||||
Identifier Name;
|
||||
|
||||
protected:
|
||||
Module(DeclContextKind Kind, Identifier Name, ASTContext &Ctx)
|
||||
: DeclContext(Kind, nullptr), Ctx(Ctx), Name(Name) {
|
||||
|
||||
Reference in New Issue
Block a user