44 references to AreReferenceAssignable
System.Core (44)
Microsoft\Scripting\Actions\CallSite.cs (1)
731
if (TypeUtils.
AreReferenceAssignable
(type, arg.Type)) {
Microsoft\Scripting\Actions\DynamicMetaObjectBinder.cs (2)
95
!TypeUtils.
AreReferenceAssignable
(returnLabel.Type, expectedResult)) {
118
!TypeUtils.
AreReferenceAssignable
(expectedResult, body.Type)) {
Microsoft\Scripting\Ast\BinaryExpression.cs (4)
582
if (!TypeUtils.
AreReferenceAssignable
(left.Type, right.Type)) {
644
if (!TypeUtils.
AreReferenceAssignable
(left.Type, b.Type)) {
671
if (!TypeUtils.
AreReferenceAssignable
(left.Type, b.Type)) {
714
return TypeUtils.
AreReferenceAssignable
(pType, argType);
Microsoft\Scripting\Ast\BlockExpression.cs (1)
780
if (!TypeUtils.
AreReferenceAssignable
(type, last.Type)) {
Microsoft\Scripting\Ast\ConditionalExpression.cs (2)
196
if (!TypeUtils.
AreReferenceAssignable
(type, ifTrue.Type) ||
197
!TypeUtils.
AreReferenceAssignable
(type, ifFalse.Type)) {
Microsoft\Scripting\Ast\Expression.cs (1)
201
if (!TypeUtils.
AreReferenceAssignable
(Type, newNode.Type)) throw Error.ReducedNotCompatible();
Microsoft\Scripting\Ast\GotoExpression.cs (1)
367
if (!TypeUtils.
AreReferenceAssignable
(expectedType, value.Type)) {
Microsoft\Scripting\Ast\IndexExpression.cs (2)
317
if (!TypeUtils.
AreReferenceAssignable
(parms[i].ParameterType, args[i].Type)) {
431
if (!TypeUtils.
AreReferenceAssignable
(pType, arg.Type)) {
Microsoft\Scripting\Ast\LambdaExpression.cs (2)
556
if (!TypeUtils.
AreReferenceAssignable
(pex.Type, pType)) {
567
if (mi.ReturnType != typeof(void) && !TypeUtils.
AreReferenceAssignable
(mi.ReturnType, body.Type)) {
Microsoft\Scripting\Ast\MemberExpression.cs (1)
156
if (!TypeUtils.
AreReferenceAssignable
(field.DeclaringType, expression.Type)) {
Microsoft\Scripting\Ast\MethodCallExpression.cs (2)
895
if (!TypeUtils.
AreReferenceAssignable
(pType, arg.Type)) {
985
if (!TypeUtils.
AreReferenceAssignable
(pType, argType) &&
Microsoft\Scripting\Ast\NewArrayExpression.cs (1)
160
if (!TypeUtils.
AreReferenceAssignable
(type, expr.Type)) {
Microsoft\Scripting\Ast\NewExpression.cs (2)
249
if (!TypeUtils.
AreReferenceAssignable
(memberType, arg.Type)) {
259
if (!TypeUtils.
AreReferenceAssignable
(pType, arg.Type)) {
Microsoft\Scripting\Ast\SwitchExpression.cs (1)
293
if (!TypeUtils.
AreReferenceAssignable
(resultType, @case.Type)) {
Microsoft\Scripting\Ast\TryExpression.cs (2)
206
if (!TypeUtils.
AreReferenceAssignable
(type, tryBody.Type)) {
210
if (!TypeUtils.
AreReferenceAssignable
(type, cb.Body.Type)) {
Microsoft\Scripting\Ast\TypeBinaryExpression.cs (1)
114
if (!TypeUtils.
AreReferenceAssignable
(typeof(object), expression.Type)) {
Microsoft\Scripting\Ast\TypeUtils.cs (9)
173
if (
AreReferenceAssignable
(targetType, instanceType)) {
177
if (
AreReferenceAssignable
(targetType, typeof(System.Object))) {
180
if (
AreReferenceAssignable
(targetType, typeof(System.ValueType))) {
183
if (instanceType.IsEnum &&
AreReferenceAssignable
(targetType, typeof(System.Enum))) {
190
if (
AreReferenceAssignable
(targetType, interfaceType)) {
394
AreReferenceAssignable
(left, right) ||
395
AreReferenceAssignable
(right, left);
410
if (
AreReferenceAssignable
(left, right) ||
AreReferenceAssignable
(right, left)) {
Microsoft\Scripting\Ast\UnaryExpression.cs (1)
998
if (!TypeUtils.
AreReferenceAssignable
(expression.Type, result.Type)) {
Microsoft\Scripting\Compiler\LambdaCompiler.Address.cs (1)
207
Debug.Assert(TypeUtils.
AreReferenceAssignable
(type, node.Type));
Microsoft\Scripting\Compiler\LambdaCompiler.ControlFlow.cs (1)
239
_labelInfo.Add(label, new LabelInfo(_ilg, label, TypeUtils.
AreReferenceAssignable
(lambda.ReturnType, label.Type)));
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (2)
138
Debug.Assert(TypeUtils.
AreReferenceAssignable
(type, node.Type));
930
if (!TypeUtils.
AreReferenceAssignable
(variables[i].Type, TypeUtils.GetNonNullableType(arguments[i].Type))) {
Microsoft\Scripting\Compiler\LambdaCompiler.Logical.cs (1)
573
if (TypeUtils.
AreReferenceAssignable
(convert.Type, convert.Operand.Type)) {
Microsoft\Scripting\Compiler\LambdaCompiler.Statements.cs (1)
195
Debug.Assert(TypeUtils.
AreReferenceAssignable
(testValue.Type, test.Type));
Microsoft\Scripting\Compiler\StackSpiller.cs (1)
152
TypeUtils.
AreReferenceAssignable
(node.Type, result.Node.Type),
Microsoft\Scripting\Utils\TypeExtensions.cs (1)
106
if (!TypeUtils.
AreReferenceAssignable
(ps[i].ParameterType, argTypes[i])) {