2 overrides of IsDefaultValue
Microsoft.CodeAnalysis (2)
ConstantValueSpecialized.cs (2)
115public override bool IsDefaultValue 436public override bool IsDefaultValue
21 references to IsDefaultValue
Microsoft.CodeAnalysis (3)
CodeGen\SwitchIntegralJumpTableEmitter.cs (3)
438if (constant.IsDefaultValue) 459if (!startConstant.IsDefaultValue) 522if (!startConstant.IsDefaultValue)
Microsoft.CodeAnalysis.CSharp (8)
BoundTree\BoundExpressionExtensions.cs (1)
99return constValue.IsDefaultValue;
CodeGen\EmitArrayInitializer.cs (1)
498if (start.ConstantValueOpt?.IsDefaultValue != true || start.ConstantValueOpt.Discriminator != ConstantValueTypeDiscriminator.Int32)
CodeGen\EmitOperators.cs (1)
371if (constant.IsDefaultValue)
CodeGen\EmitStatement.cs (2)
259bool isZero = constOp.ConstantValueOpt.IsDefaultValue; 401bool taken = condition.ConstantValueOpt.IsDefaultValue != sense;
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (2)
267if (!leftConst.IsDefaultValue && !rightConst.IsDefaultValue)
Lowering\SyntheticBoundNodeFactory.cs (1)
1086Debug.Assert(charConst.IsChar || charConst.IsDefaultValue);
Microsoft.CodeAnalysis.VisualBasic (10)
Binding\Binder_Attributes.vb (1)
857If lastIndex.IsConstant AndAlso Not lastIndex.ConstantValueOpt.IsDefaultValue Then
Binding\Binder_Expressions.vb (1)
4297If lowerBoundConstantValueOpt Is Nothing OrElse Not lowerBoundConstantValueOpt.IsIntegral OrElse Not lowerBoundConstantValueOpt.IsDefaultValue Then
BoundTree\BoundExpressionExtensions.vb (2)
28If constValue IsNot Nothing AndAlso constValue.IsDefaultValue Then 386Return c IsNot Nothing AndAlso c.IsDefaultValue
CodeGen\EmitArrayInitializer.vb (1)
83(includeConstants AndAlso Not init.ConstantValueOpt.IsDefaultValue)
CodeGen\EmitOperators.vb (1)
476If constant.IsDefaultValue Then
CodeGen\EmitStatement.vb (2)
527Dim isZero As Boolean = constOp.IsDefaultValue 680Dim taken As Boolean = constExprValue.IsDefaultValue <> sense
Lowering\LocalRewriter\LocalRewriter_StringConcat.vb (2)
208If Not leftConst.IsDefaultValue AndAlso 209Not rightConst.IsDefaultValue AndAlso