94 references to IsNullableType
System.Core (94)
Microsoft\Scripting\Ast\BinaryExpression.cs (31)
316
if (TypeUtils.
IsNullableType
(_left.Type)) {
329
return IsLifted && TypeUtils.
IsNullableType
(Type);
368
TypeUtils.
IsNullableType
(left) &&
598
if (TypeUtils.
IsNullableType
(left.Type) && TypeUtils.
IsNullableType
(right.Type)) {
602
if (method != null && method.ReturnType.IsValueType && !TypeUtils.
IsNullableType
(method.ReturnType)) {
627
if (TypeUtils.
IsNullableType
(left.Type) && TypeUtils.
IsNullableType
(right.Type) &&
630
method.ReturnType.IsValueType && !TypeUtils.
IsNullableType
(method.ReturnType)) {
703
return TypeUtils.
IsNullableType
(right) &&
704
TypeUtils.
IsNullableType
(left) &&
719
if (TypeUtils.
IsNullableType
(paramType) && !TypeUtils.
IsNullableType
(operandType)) {
748
if (IsNullConstant(left) && !IsNullConstant(right) && TypeUtils.
IsNullableType
(right.Type)) {
751
if (IsNullConstant(right) && !IsNullConstant(left) && TypeUtils.
IsNullableType
(left.Type)) {
775
if (!(TypeUtils.
IsNullableType
(left) && ParameterIsAssignable(pms[0], TypeUtils.GetNonNullableType(left))))
779
if (!(TypeUtils.
IsNullableType
(right) && ParameterIsAssignable(pms[1], TypeUtils.GetNonNullableType(right))))
808
if (!(TypeUtils.
IsNullableType
(left) && ParameterIsAssignable(pmsOpTrue[0], TypeUtils.GetNonNullableType(left))))
815
TypeUtils.
IsNullableType
(right) &&
1044
if (TypeUtils.
IsNullableType
(left.Type) && liftToNull) {
1056
if (TypeUtils.
IsNullableType
(left.Type) && liftToNull) {
1196
if (TypeUtils.
IsNullableType
(left.Type) && liftToNull) {
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;
1334
if (left.Type.IsValueType && !TypeUtils.
IsNullableType
(left.Type)) {
1368
if (left.IsValueType && !TypeUtils.
IsNullableType
(left)) {
1370
} else if (TypeUtils.
IsNullableType
(left) && TypeUtils.IsImplicitlyConvertible(right, leftStripped)) {
2105
if (!left.
IsNullableType
() && right.
IsNullableType
()) {
Microsoft\Scripting\Ast\ConstantExpression.cs (1)
129
if (value == null && type.IsValueType && !TypeUtils.
IsNullableType
(type)) {
Microsoft\Scripting\Ast\SwitchExpression.cs (2)
107
if (_switchValue.Type.
IsNullableType
()) {
237
if (!rightOperandType.
IsNullableType
()) {
Microsoft\Scripting\Ast\TypeBinaryExpression.cs (2)
84
if (cType.IsValueType && !cType.
IsNullableType
()) {
96
if (cType.
IsNullableType
()) {
Microsoft\Scripting\Ast\TypeUtils.cs (5)
36
if (
IsNullableType
(type)) {
44
if (type.IsValueType && !
IsNullableType
(type)) {
208
if (
IsNullableType
(source) && AreEquivalent(dest, GetNonNullableType(source))) {
211
if (
IsNullableType
(dest) && AreEquivalent(source, GetNonNullableType(dest))) {
599
if (
IsNullableType
(destination))
Microsoft\Scripting\Ast\UnaryExpression.cs (10)
92
bool operandIsNullable = TypeUtils.
IsNullableType
(_operand.Type);
93
bool resultIsNullable = TypeUtils.
IsNullableType
(this.Type);
108
return IsLifted && TypeUtils.
IsNullableType
(this.Type);
383
if (TypeUtils.
IsNullableType
(operandType)) {
386
if (method != null && method.ReturnType.IsValueType && !TypeUtils.
IsNullableType
(method.ReturnType)) {
404
if (TypeUtils.
IsNullableType
(operand.Type) &&
406
method.ReturnType.IsValueType && !TypeUtils.
IsNullableType
(method.ReturnType)) {
441
if ((TypeUtils.
IsNullableType
(operand.Type) || TypeUtils.
IsNullableType
(convertToType)) &&
666
if (type.IsValueType && !TypeUtils.
IsNullableType
(type)) {
Microsoft\Scripting\Compiler\ConstantCheck.cs (1)
90
if (operandType.IsValueType && !operandType.
IsNullableType
()) {
Microsoft\Scripting\Compiler\ILGen.cs (13)
605
bool isTypeFromNullable = TypeUtils.
IsNullableType
(typeFrom);
606
bool isTypeToNullable = TypeUtils.
IsNullableType
(typeTo);
773
Debug.Assert(TypeUtils.
IsNullableType
(typeFrom));
774
Debug.Assert(TypeUtils.
IsNullableType
(typeTo));
808
Debug.Assert(!TypeUtils.
IsNullableType
(typeFrom));
809
Debug.Assert(TypeUtils.
IsNullableType
(typeTo));
822
Debug.Assert(TypeUtils.
IsNullableType
(typeFrom));
823
Debug.Assert(!TypeUtils.
IsNullableType
(typeTo));
832
Debug.Assert(TypeUtils.
IsNullableType
(typeFrom));
833
Debug.Assert(!TypeUtils.
IsNullableType
(typeTo));
846
Debug.Assert(TypeUtils.
IsNullableType
(typeFrom));
854
bool isTypeFromNullable = TypeUtils.
IsNullableType
(typeFrom);
855
bool isTypeToNullable = TypeUtils.
IsNullableType
(typeTo);
Microsoft\Scripting\Compiler\LambdaCompiler.Address.cs (2)
85
if (TypeUtils.
IsNullableType
(rightType)) {
199
Debug.Assert(type.IsValueType && !TypeUtils.
IsNullableType
(type));
Microsoft\Scripting\Compiler\LambdaCompiler.Binary.cs (13)
58
if (ConstantCheck.IsNull(b.Left) && !ConstantCheck.IsNull(b.Right) && TypeUtils.
IsNullableType
(b.Right.Type)) {
62
if (ConstantCheck.IsNull(b.Right) && !ConstantCheck.IsNull(b.Left) && TypeUtils.
IsNullableType
(b.Left.Type)) {
82
Debug.Assert(TypeUtils.
IsNullableType
(e.Type));
137
bool leftIsNullable = TypeUtils.
IsNullableType
(leftType);
138
bool rightIsNullable = TypeUtils.
IsNullableType
(rightType);
162
Debug.Assert(!TypeUtils.
IsNullableType
(leftType));
163
Debug.Assert(!TypeUtils.
IsNullableType
(rightType));
304
Debug.Assert(!resultType.
IsNullableType
());
337
Debug.Assert(TypeUtils.
IsNullableType
(leftType) || TypeUtils.
IsNullableType
(rightType));
383
Debug.Assert(TypeUtils.
IsNullableType
(leftType));
493
bool leftIsNullable = TypeUtils.
IsNullableType
(leftType);
494
bool rightIsNullable = TypeUtils.
IsNullableType
(rightType);
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (5)
557
if (type.
IsNullableType
()) {
952
if (TypeUtils.
IsNullableType
(arg.Type)) {
977
if (TypeUtils.
IsNullableType
(resultType) && !TypeUtils.AreEquivalent(resultType, mc.Type)) {
1028
if (TypeUtils.
IsNullableType
(arg.Type)) {
1068
if (TypeUtils.
IsNullableType
(resultType) && !TypeUtils.AreEquivalent(resultType, mc.Type)) {
Microsoft\Scripting\Compiler\LambdaCompiler.Logical.cs (5)
98
if (TypeUtils.
IsNullableType
(b.Left.Type)) {
532
if (TypeUtils.
IsNullableType
(node.Right.Type)) {
541
if (TypeUtils.
IsNullableType
(node.Left.Type)) {
549
} else if (TypeUtils.
IsNullableType
(node.Left.Type) || TypeUtils.
IsNullableType
(node.Right.Type)) {
Microsoft\Scripting\Compiler\LambdaCompiler.Unary.cs (4)
98
bool operandIsNullable = TypeUtils.
IsNullableType
(operandType);
182
if (TypeUtils.
IsNullableType
(resultType)) {
224
if (TypeUtils.
IsNullableType
(resultType)) {
272
Debug.Assert(node.Type.IsValueType && !TypeUtils.
IsNullableType
(node.Type));