37 references to IsLiteralNull
Microsoft.CodeAnalysis.CSharp (37)
Binder\Binder_Expressions.cs (1)
2535if (!targetType.IsReferenceType && !targetType.IsNullableType() && operand.IsLiteralNull())
Binder\Binder_Operators.cs (9)
358return operand.IsLiteralNull(); 537bool leftNull = left.IsLiteralNull(); 538bool rightNull = right.IsLiteralNull(); 693bool leftNull = left.IsLiteralNull(); 694bool rightNull = right.IsLiteralNull(); 1048Debug.Assert(left.IsLiteralNull()); 2684bool isOperandNullOrNew = operand.IsLiteralNull() || operand.IsImplicitObjectCreation(); 3129if ((object)operand.Type == null && !operand.IsLiteralNull()) 3705if (operand.IsLiteralNull())
Binder\Binder_Query.cs (1)
934else if (ultimateReceiver.IsLiteralNull())
Binder\Binder_Statements.cs (2)
401if (!boundExpr.IsLiteralNull()) 2331if (operand.IsLiteralNull())
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1154if (!source.IsLiteralNull())
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (2)
749BuiltInOperators.IsValidObjectEquality(conversions, left.Type, left.IsLiteralNull(), leftIsDefault: false, right.Type, right.IsLiteralNull(), rightIsDefault: false, ref useSiteInfo) &&
Compilation\CSharpSemanticModel.cs (2)
3847((binaryOperator.Left.IsLiteralNull() && binaryOperator.Right.Type.IsNullableType()) || 3848(binaryOperator.Right.IsLiteralNull() && binaryOperator.Left.Type.IsNullableType())) &&
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (3)
369if (node.Operand.IsLiteralNull() && (object)node.Operand.Type == null) 427if ((object)left.Type == null && left.IsLiteralNull()) 431if ((object)right.Type == null && right.IsLiteralNull())
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
840if (_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)
1863Debug.Assert(loweredLeft.IsLiteralNull() != loweredRight.IsLiteralNull()); 1865BoundExpression nullable = loweredRight.IsLiteralNull() ? loweredLeft : loweredRight; 1899loweredLeft.IsLiteralNull() ? loweredLeft : loweredRight, 1934if (loweredRight.IsLiteralNull() || 1935loweredLeft.IsLiteralNull() ||
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (2)
566if (left.IsLiteralNull() && right.IsLiteralNull())
Lowering\SyntheticBoundNodeFactory.cs (5)
1377if (conversion.Kind == ConversionKind.ImplicitReference && arg.IsLiteralNull()) 1695Debug.Assert(loweredLeft.IsLiteralNull() != loweredRight.IsLiteralNull()); 1697BoundExpression nullable = loweredRight.IsLiteralNull() ? loweredLeft : loweredRight; 1731loweredLeft.IsLiteralNull() ? loweredLeft : loweredRight,