39 references to IsLiteralNull
Microsoft.CodeAnalysis.CSharp (39)
Binder\Binder_Expressions.cs (1)
2748
if (!targetType.IsReferenceType && !targetType.IsNullableType() && operand.
IsLiteralNull
())
Binder\Binder_Operators.cs (9)
358
return operand.
IsLiteralNull
();
537
bool leftNull = left.
IsLiteralNull
();
538
bool rightNull = right.
IsLiteralNull
();
723
bool leftNull = left.
IsLiteralNull
();
724
bool rightNull = right.
IsLiteralNull
();
1079
Debug.Assert(left.
IsLiteralNull
());
2727
bool isOperandNullOrNew = operand.
IsLiteralNull
() || operand.IsImplicitObjectCreation();
3172
if ((object)operand.Type == null && !operand.
IsLiteralNull
())
3777
if (operand.
IsLiteralNull
())
Binder\Binder_Query.cs (1)
935
else if (ultimateReceiver.
IsLiteralNull
())
Binder\Binder_Statements.cs (2)
404
if (!boundExpr.
IsLiteralNull
())
2367
if (operand.
IsLiteralNull
())
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1236
if (!source.
IsLiteralNull
())
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (4)
721
if ((left.Type is TypeParameterSymbol { AllowsRefLikeType: true } && right.
IsLiteralNull
()) ||
722
(right.Type is TypeParameterSymbol { AllowsRefLikeType: true } && left.
IsLiteralNull
()))
767
BuiltInOperators.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)
367
if (node.Operand.
IsLiteralNull
() && (object)node.Operand.Type == null)
493
if ((object)left.Type == null && left.
IsLiteralNull
())
497
if ((object)right.Type == null && right.
IsLiteralNull
())
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
912
if (_inExpressionLambda && (node.LeftOperand.
IsLiteralNull
() || node.LeftOperand.IsLiteralDefault()))
Lowering\DiagnosticsPass_Warnings.cs (2)
768
if (node.Right.
IsLiteralNull
() && node.Left.NullableAlwaysHasValue())
772
else if (node.Left.
IsLiteralNull
() && node.Right.NullableAlwaysHasValue())
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (6)
1943
Debug.Assert(loweredLeft.
IsLiteralNull
() != loweredRight.
IsLiteralNull
());
1945
BoundExpression nullable = loweredRight.
IsLiteralNull
() ? loweredLeft : loweredRight;
1979
loweredLeft.
IsLiteralNull
() ? loweredLeft : loweredRight,
2014
if (loweredRight.
IsLiteralNull
() ||
2015
loweredLeft.
IsLiteralNull
() ||
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (2)
566
if (left.
IsLiteralNull
() && right.
IsLiteralNull
())
Lowering\SyntheticBoundNodeFactory.cs (5)
1501
if (conversion.Kind == ConversionKind.ImplicitReference && arg.
IsLiteralNull
())
1823
Debug.Assert(loweredLeft.
IsLiteralNull
() != loweredRight.
IsLiteralNull
());
1825
BoundExpression nullable = loweredRight.
IsLiteralNull
() ? loweredLeft : loweredRight;
1859
loweredLeft.
IsLiteralNull
() ? loweredLeft : loweredRight,