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:
Chris Lattner
2011-11-01 04:43:51 +00:00
parent 2ea1e72890
commit 4933a27098
3 changed files with 45 additions and 35 deletions

View File

@@ -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) {