39 references to IsLiteralNull
Microsoft.CodeAnalysis.CSharp (39)
Binder\Binder_Expressions.cs (1)
2795if (!targetType.IsReferenceType && !targetType.IsNullableType() && operand.IsLiteralNull())
Binder\Binder_Operators.cs (9)
757return operand.IsLiteralNull(); 936bool leftNull = left.IsLiteralNull(); 937bool rightNull = right.IsLiteralNull(); 1155bool leftNull = left.IsLiteralNull(); 1156bool rightNull = right.IsLiteralNull(); 1568Debug.Assert(left.IsLiteralNull()); 4154bool isOperandNullOrNew = operand.IsLiteralNull() || operand.IsImplicitObjectCreation(); 4599if ((object)operand.Type == null && !operand.IsLiteralNull()) 5204if (operand.IsLiteralNull())
Binder\Binder_Query.cs (1)
937else if (ultimateReceiver.IsLiteralNull())
Binder\Binder_Statements.cs (2)
404if (!boundExpr.IsLiteralNull()) 2383if (operand.IsLiteralNull())
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1236if (!source.IsLiteralNull())
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (4)
734if ((left.Type is TypeParameterSymbol { AllowsRefLikeType: true } && right.IsLiteralNull()) || 735(right.Type is TypeParameterSymbol { AllowsRefLikeType: true } && left.IsLiteralNull())) 780BuiltInOperators.IsValidObjectEquality(conversions, left.Type, left.IsLiteralNull(), leftIsDefault: false, right.Type, right.IsLiteralNull(), rightIsDefault: false, ref useSiteInfo) &&
Compilation\CSharpSemanticModel.cs (2)
3871((binaryOperator.Left.IsLiteralNull() && binaryOperator.Right.Type.IsNullableType()) || 3872(binaryOperator.Right.IsLiteralNull() && binaryOperator.Left.Type.IsNullableType())) &&
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (3)
367if (node.Operand.IsLiteralNull() && (object)node.Operand.Type == null) 493if ((object)left.Type == null && left.IsLiteralNull()) 497if ((object)right.Type == null && right.IsLiteralNull())
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
972if (_inExpressionLambda && (node.LeftOperand.IsLiteralNull() || node.LeftOperand.IsLiteralDefault()))
Lowering\DiagnosticsPass_Warnings.cs (2)
768if (node.Right.IsLiteralNull() && node.Left.NullableAlwaysHasValue()) 772else if (node.Left.IsLiteralNull() && node.Right.NullableAlwaysHasValue())
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (6)
1961Debug.Assert(loweredLeft.IsLiteralNull() != loweredRight.IsLiteralNull()); 1963BoundExpression nullable = loweredRight.IsLiteralNull() ? loweredLeft : loweredRight; 1997loweredLeft.IsLiteralNull() ? loweredLeft : loweredRight, 2032if (loweredRight.IsLiteralNull() || 2033loweredLeft.IsLiteralNull() ||
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (2)
566if (left.IsLiteralNull() && right.IsLiteralNull())
Lowering\SyntheticBoundNodeFactory.cs (5)
1519if (conversion.Kind == ConversionKind.ImplicitReference && arg.IsLiteralNull()) 1841Debug.Assert(loweredLeft.IsLiteralNull() != loweredRight.IsLiteralNull()); 1843BoundExpression nullable = loweredRight.IsLiteralNull() ? loweredLeft : loweredRight; 1877loweredLeft.IsLiteralNull() ? loweredLeft : loweredRight,