Plumb the DeclContext of the use site down to the "doesVarDeclMemberProduceLValue"

function.  Pretty soon, whether something is an lvalue or not will depend on who is
asking.


Swift SVN r12507
This commit is contained in:
Chris Lattner
2014-01-17 22:14:02 +00:00
parent 17d9bf24bf
commit b4735381d0
13 changed files with 65 additions and 59 deletions

View File

@@ -647,7 +647,7 @@ ConstraintSystem::getTypeOfReference(ValueDecl *value,
}
// Determine the type of the value, opening up that type if necessary.
Type valueType = TC.getUnopenedTypeOfReference(value, Type(),
Type valueType = TC.getUnopenedTypeOfReference(value, Type(), DC,
/*wantInterfaceType=*/true);
// Adjust the type of the reference.
@@ -843,7 +843,7 @@ ConstraintSystem::getTypeOfMemberReference(Type baseTy, ValueDecl *value,
openedType = openType(genericFn, dc, /*skipProtocolSelfConstraint=*/true,
opener);
} else {
openedType = TC.getUnopenedTypeOfReference(value, baseTy,
openedType = TC.getUnopenedTypeOfReference(value, baseTy, DC,
/*wantInterfaceType=*/true);
Type selfTy;