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