39 references to IsLiteralNull
Microsoft.CodeAnalysis.CSharp (39)
Binder\Binder_Expressions.cs (1)
2707if (!targetType.IsReferenceType && !targetType.IsNullableType() && operand.IsLiteralNull())
Binder\Binder_Operators.cs (9)
358return operand.IsLiteralNull(); 537bool leftNull = left.IsLiteralNull(); 538bool rightNull = right.IsLiteralNull(); 723bool leftNull = left.IsLiteralNull(); 724bool rightNull = right.IsLiteralNull(); 1079Debug.Assert(left.IsLiteralNull()); 2727bool isOperandNullOrNew = operand.IsLiteralNull() || operand.IsImplicitObjectCreation(); 3172if ((object)operand.Type == null && !operand.IsLiteralNull()) 3775if (operand.IsLiteralNull())
Binder\Binder_Query.cs (1)
935else if (ultimateReceiver.IsLiteralNull())
Binder\Binder_Statements.cs (2)
403if (!boundExpr.IsLiteralNull()) 2332if (operand.IsLiteralNull())
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1220if (!source.IsLiteralNull())
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (4)
721if ((left.Type is TypeParameterSymbol { AllowsRefLikeType: true } && right.IsLiteralNull()) || 722(right.Type is TypeParameterSymbol { AllowsRefLikeType: true } && left.IsLiteralNull())) 767BuiltInOperators.IsValidObjectEquality(conversions, left.Type, left.IsLiteralNull(), leftIsDefault: false, right.Type, right.IsLiteralNull(), rightIsDefault: false, ref useSiteInfo) &&
Compilation\CSharpSemanticModel.cs (2)
3859((binaryOperator.Left.IsLiteralNull() && binaryOperator.Right.Type.IsNullableType()) || 3860(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)
890if (_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)
1943Debug.Assert(loweredLeft.IsLiteralNull() != loweredRight.IsLiteralNull()); 1945BoundExpression nullable = loweredRight.IsLiteralNull() ? loweredLeft : loweredRight; 1979loweredLeft.IsLiteralNull() ? loweredLeft : loweredRight, 2014if (loweredRight.IsLiteralNull() || 2015loweredLeft.IsLiteralNull() ||
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (2)
566if (left.IsLiteralNull() && right.IsLiteralNull())
Lowering\SyntheticBoundNodeFactory.cs (5)
1557if (conversion.Kind == ConversionKind.ImplicitReference && arg.IsLiteralNull()) 1879Debug.Assert(loweredLeft.IsLiteralNull() != loweredRight.IsLiteralNull()); 1881BoundExpression nullable = loweredRight.IsLiteralNull() ? loweredLeft : loweredRight; 1915loweredLeft.IsLiteralNull() ? loweredLeft : loweredRight,