36 references to IsDefaultValue
Microsoft.CodeAnalysis.CSharp (36)
Binder\Binder_Attributes.cs (1)
993
if (bounds[0].
IsDefaultValue
())
CodeGen\EmitArrayInitializer.cs (2)
103
if (init.
IsDefaultValue
())
316
if (!init.
IsDefaultValue
())
CodeGen\EmitExpression.cs (2)
578
Debug.Assert(receiverTemp == null || receiver.
IsDefaultValue
());
2609
if (right.
IsDefaultValue
())
CodeGen\EmitStatement.cs (1)
537
(ca.WhenNullOpt?.
IsDefaultValue
() == false);
Lowering\LocalRewriter\LocalRewriter.cs (1)
931
return rhs.
IsDefaultValue
();
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (15)
313
if (loweredLeft.
IsDefaultValue
())
317
if (loweredRight.
IsDefaultValue
())
416
if (loweredRight.
IsDefaultValue
())
426
if (loweredLeft.
IsDefaultValue
())
439
if (loweredLeft.
IsDefaultValue
())
443
if (loweredRight.
IsDefaultValue
())
453
if (loweredRight.
IsDefaultValue
())
463
if (loweredLeft.
IsDefaultValue
())
467
if (loweredRight.
IsDefaultValue
())
483
if (loweredLeft.Kind == BoundKind.ArrayLength && loweredRight.
IsDefaultValue
())
498
if (loweredRight.Kind == BoundKind.ArrayLength && loweredLeft.
IsDefaultValue
())
513
if (loweredLeft.Kind == BoundKind.ArrayLength && loweredRight.
IsDefaultValue
())
517
else if (loweredRight.Kind == BoundKind.ArrayLength && loweredLeft.
IsDefaultValue
())
547
(conditionalLeft.WhenNullOpt == null || conditionalLeft.WhenNullOpt.
IsDefaultValue
());
1973
(conditionalAccess.WhenNullOpt == null || conditionalAccess.WhenNullOpt.
IsDefaultValue
()))
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
826
if (expression.
IsDefaultValue
())
877
if (expression.
IsDefaultValue
())
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.cs (1)
48
if (loweredReceiver.
IsDefaultValue
() && receiverType.IsReferenceType)
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (3)
410
if (rewrittenOperand.
IsDefaultValue
() && (!_inExpressionLambda || !explicitCastInCode))
429
if (rewrittenOperand.
IsDefaultValue
() && (!_inExpressionLambda || !explicitCastInCode))
491
rewrittenOperand.
IsDefaultValue
() &&
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (3)
68
if (rewrittenLeft.
IsDefaultValue
())
115
if (whenNullOpt.
IsDefaultValue
() && whenNullOpt.Type.SpecialType != SpecialType.System_Decimal)
139
if (unwrappedRight.
IsDefaultValue
() &&
Lowering\LocalRewriter\LocalRewriter_PointerElementAccess.cs (1)
35
if (rewrittenIndex.
IsDefaultValue
())
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
323
operand.
IsDefaultValue
();
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
271
(conditionalLeft.WhenNullOpt == null || conditionalLeft.WhenNullOpt.
IsDefaultValue
());
Lowering\SyntheticBoundNodeFactory.cs (1)
1853
(conditionalAccess.WhenNullOpt == null || conditionalAccess.WhenNullOpt.
IsDefaultValue
()))
Symbols\Synthesized\SynthesizedStaticConstructor.cs (1)
423
if (!value.
IsDefaultValue
())