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