AST: Add a DeclContext field to ComponentIdentTypeRepr

Plumb this through and set it appropriately, but don't use it
for anything yet.
This commit is contained in:
Slava Pestov
2017-07-17 18:10:10 -07:00
parent 5592d3cca8
commit 737174fe9f
14 changed files with 70 additions and 33 deletions

View File

@@ -859,7 +859,7 @@ ConstraintSystem::getTypeOfReference(ValueDecl *value,
// Unqualified reference to a type.
if (auto typeDecl = dyn_cast<TypeDecl>(value)) {
// Resolve the reference to this type declaration in our current context.
auto type = TC.resolveTypeInContext(typeDecl, DC,
auto type = TC.resolveTypeInContext(typeDecl, nullptr, DC,
TR_InExpression,
/*isSpecialized=*/false);