76 references to GetNonNullableType
System.Core (76)
Microsoft\Scripting\Ast\BinaryExpression.cs (21)
370TypeUtils.AreEquivalent(method.ReturnType, TypeUtils.GetNonNullableType(left)); 599Type nnLeftType = TypeUtils.GetNonNullableType(left.Type); 600Type nnRightType = TypeUtils.GetNonNullableType(right.Type); 628ParameterIsAssignable(pms[0], TypeUtils.GetNonNullableType(left.Type)) && 629ParameterIsAssignable(pms[1], TypeUtils.GetNonNullableType(right.Type)) && 687Type nnLeftType = TypeUtils.GetNonNullableType(leftType); 688Type nnRightType = TypeUtils.GetNonNullableType(rightType); 775if (!(TypeUtils.IsNullableType(left) && ParameterIsAssignable(pms[0], TypeUtils.GetNonNullableType(left)))) 779if (!(TypeUtils.IsNullableType(right) && ParameterIsAssignable(pms[1], TypeUtils.GetNonNullableType(right)))) 789left = TypeUtils.GetNonNullableType(left); 790right = TypeUtils.GetNonNullableType(left); 808if (!(TypeUtils.IsNullableType(left) && ParameterIsAssignable(pmsOpTrue[0], TypeUtils.GetNonNullableType(left)))) 816TypeUtils.AreEquivalent(pms[1].ParameterType, TypeUtils.GetNonNullableType(right)); 1043TypeUtils.GetNonNullableType(left.Type).IsEnum)) { 1245returnType = (TypeUtils.IsNullableType(left.Type) && TypeUtils.AreEquivalent(method.ReturnType, TypeUtils.GetNonNullableType(left.Type))) ? left.Type : method.ReturnType; 1251returnType = (TypeUtils.IsNullableType(left.Type) && TypeUtils.AreEquivalent(method.ReturnType, TypeUtils.GetNonNullableType(left.Type))) ? left.Type : method.ReturnType; 1291returnType = (TypeUtils.IsNullableType(left.Type) && method.ReturnType == TypeUtils.GetNonNullableType(left.Type)) ? left.Type : method.ReturnType; 1297returnType = (TypeUtils.IsNullableType(left.Type) && method.ReturnType == TypeUtils.GetNonNullableType(left.Type)) ? left.Type : method.ReturnType; 1358if (!ParameterIsAssignable(pms[0], TypeUtils.GetNonNullableType(left.Type)) && 1367Type leftStripped = TypeUtils.GetNonNullableType(left); 2101&& TypeUtils.GetNonNullableType(right) == typeof(int);
Microsoft\Scripting\Ast\SwitchExpression.cs (2)
222liftedCall = ParameterIsAssignable(leftParam, switchValue.Type.GetNonNullableType()); 240rightOperandType = rightOperandType.GetNonNullableType();
Microsoft\Scripting\Ast\TypeBinaryExpression.cs (3)
85return Expression.Block(Expression, Expression.Constant(cType == _typeOperand.GetNonNullableType())); 146Expression.Constant(_typeOperand.GetNonNullableType(), typeof(Type)) 157return Expression.Constant(_typeOperand.GetNonNullableType() == ce.Value.GetType());
Microsoft\Scripting\Ast\TypeUtils.cs (19)
55return GetNonNullableType(type) == typeof(bool); 59type = GetNonNullableType(type); 80type = GetNonNullableType(type); 101type = GetNonNullableType(type); 119type = GetNonNullableType(type); 132type = GetNonNullableType(type); 208if (IsNullableType(source) && AreEquivalent(dest, GetNonNullableType(source))) { 211if (IsNullableType(dest) && AreEquivalent(source, GetNonNullableType(dest))) { 220if (IsConvertible(source) && IsConvertible(dest) && GetNonNullableType(dest) != typeof(bool)) { 236Type nnSourceType = TypeUtils.GetNonNullableType(source); 237Type nnDestType = TypeUtils.GetNonNullableType(dest); 359type = GetNonNullableType(type); 424Type nnType = GetNonNullableType(left); 442Type nnExprType = TypeUtils.GetNonNullableType(convertFrom); 443Type nnConvType = TypeUtils.GetNonNullableType(convertToType); 600return IsImplicitlyConvertible(GetNonNullableType(source), GetNonNullableType(destination)); 636type = GetNonNullableType(type); 650type = GetNonNullableType(type);
Microsoft\Scripting\Ast\UnaryExpression.cs (4)
376Type nnOperandType = TypeUtils.GetNonNullableType(operandType); 405ParameterIsAssignable(pms[0], TypeUtils.GetNonNullableType(operand.Type)) && 442ParameterIsAssignable(pms[0], TypeUtils.GetNonNullableType(operand.Type)) && 443TypeUtils.AreEquivalent(method.ReturnType, TypeUtils.GetNonNullableType(convertToType))) {
Microsoft\Scripting\Compiler\ConstantCheck.cs (2)
77Type nnOperandType = operandType.GetNonNullableType(); 78Type nnTestType = testType.GetNonNullableType();
Microsoft\Scripting\Compiler\ILGen.cs (6)
608Type nnExprType = TypeUtils.GetNonNullableType(typeFrom); 609Type nnType = TypeUtils.GetNonNullableType(typeTo); 789Type nnTypeFrom = TypeUtils.GetNonNullableType(typeFrom); 790Type nnTypeTo = TypeUtils.GetNonNullableType(typeTo); 812Type nnTypeTo = TypeUtils.GetNonNullableType(typeTo); 840Type nnTypeFrom = TypeUtils.GetNonNullableType(typeFrom);
Microsoft\Scripting\Compiler\LambdaCompiler.Address.cs (1)
92Type indexType = TypeUtils.GetNonNullableType(rightType);
Microsoft\Scripting\Compiler\LambdaCompiler.Binary.cs (11)
102ParameterExpression p1 = Expression.Variable(TypeUtils.GetNonNullableType(b.Left.Type), null); 103ParameterExpression p2 = Expression.Variable(TypeUtils.GetNonNullableType(b.Right.Type), null); 466TypeUtils.GetNonNullableType(leftType), 467TypeUtils.GetNonNullableType(rightType), 468TypeUtils.GetNonNullableType(resultType), 476if (!TypeUtils.AreEquivalent(resultType, TypeUtils.GetNonNullableType(resultType))) { 477_ilg.EmitConvertToType(TypeUtils.GetNonNullableType(resultType), resultType, true); 540EmitBinaryOperator(op, TypeUtils.GetNonNullableType(leftType), TypeUtils.GetNonNullableType(rightType), TypeUtils.GetNonNullableType(resultType), false); 543ConstructorInfo ci = resultType.GetConstructor(new Type[] { TypeUtils.GetNonNullableType(resultType) });
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (3)
930if (!TypeUtils.AreReferenceAssignable(variables[i].Type, TypeUtils.GetNonNullableType(arguments[i].Type))) { 938Debug.Assert(TypeUtils.AreEquivalent(TypeUtils.GetNonNullableType(resultType), TypeUtils.GetNonNullableType(mc.Type)));
Microsoft\Scripting\Compiler\LambdaCompiler.Logical.cs (1)
122Type nnLeftType = TypeUtils.GetNonNullableType(b.Left.Type);
Microsoft\Scripting\Compiler\LambdaCompiler.Unary.cs (3)
125Type nnOperandType = TypeUtils.GetNonNullableType(operandType); 160Type nnOperandType = TypeUtils.GetNonNullableType(resultType); 337ParameterExpression v = Expression.Variable(TypeUtils.GetNonNullableType(node.Operand.Type), null);