1 write to ConstantValue
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
8028this.ConstantValue = constantValue;
16 references to ConstantValue
Microsoft.CodeAnalysis.CSharp (16)
Binder\DecisionDagBuilder.cs (5)
487if (constant.ConstantValue == ConstantValue.Null) 492else if (constant.ConstantValue.IsString && input.Type.IsSpanOrReadOnlySpanChar()) 495return new Tests.One(new BoundDagValueTest(constant.Syntax, constant.ConstantValue, input)); 502if (ValueSetFactory.ForInput(input)?.Related(BinaryOperatorKind.Equal, constant.ConstantValue).IsEmpty == true) 510tests.Add(new Tests.One(new BoundDagValueTest(constant.Syntax, constant.ConstantValue, input)));
Binder\SwitchBinder_Patterns.cs (3)
109if (label.Pattern is BoundConstantPattern cp && !cp.ConstantValue.IsBad && FindMatchingSwitchCaseLabel(cp.ConstantValue, p) != label.Label) 112diagnostics.Add(ErrorCode.ERR_DuplicateCaseLabel, syntax.Location, cp.ConstantValue.GetValueToDisplay());
FlowAnalysis\AbstractFlowPass.cs (4)
989case BoundConstantPattern { ConstantValue: { IsNull: false } }: 993case BoundConstantPattern { ConstantValue: { IsNull: true } }: 1034case BoundConstantPattern { ConstantValue: { IsBoolean: true, BooleanValue: var boolValue } }: 1065case BoundConstantPattern { ConstantValue: { IsBoolean: false } }:
Generated\BoundNodes.xml.Generated.cs (4)
8043if (value != this.Value || constantValue != this.ConstantValue || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything)) 12095return node.Update(value, node.ConstantValue, inputType, narrowedType); 14752return node.Update(value, node.ConstantValue, inputType, narrowedType); 16947new TreeDumperNode("constantValue", node.ConstantValue, null),