Expression ResolveMemberReferenceOnGivenTarget(ResolveContext rc, Expression target, MemberAccess memberReferenceExpression) { return (new MemberAccess(target, memberReferenceExpression.Name, memberReferenceExpression.TypeArguments, memberReferenceExpression.Location, NameLookupMode.Expression).DoResolve(rc)); }