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