1 write to Value
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
5362this.Value = value;
30 references to Value
Microsoft.CodeAnalysis.CSharp (30)
Binder\DecisionDagBuilder.cs (16)
1778return resultForRelation(BinaryOperatorKind.Equal, t.Value); 2060handleRelationWithValue(BinaryOperatorKind.Equal, v2.Value, 2377Debug.Assert((hasValueTest.Value == ConstantValue.True || hasValueTest.Value == ConstantValue.False)); 2378if (hasValueTest.Value == ConstantValue.True || hasValueTest.Value == ConstantValue.False) 2380sense = hasValueTest.Value == ConstantValue.True; 2395bool isTrue = tryGetValueTest.Value == ConstantValue.True; 2929return $"?{d.Kind}({tempName(d.Input)} == {v.Value})"; 3537case BoundDagValueTest t when !t.Value.IsBad: 3538Debug.Assert(t.Value.Discriminator == ConstantValueTypeDiscriminator.Int32); 3539return knownResult(BinaryOperatorKind.Equal, t.Value, offset) ?? 3540new One(new BoundDagValueTest(t.Syntax, safeAdd(t.Value, offset), lengthTemp)); 4972case One { Test: BoundDagValueTest firstValueTest } when !firstValueTest.Value.IsBad: 5002case One { Test: BoundDagValueTest vt } when vt.Input == input && !vt.Value.IsBad: 5031One { Test: BoundDagValueTest vt } => factory.Related(BinaryOperatorKind.Equal, vt.Value),
Binder\PatternExplainer.cs (1)
769addRelation(BinaryOperatorKind.Equal, v.Value);
BoundTree\BoundDagTest.cs (4)
38return x.Value.Equals(y.Value); 116return $"{v.Input.GetDebuggerDisplay()} == {v.Value.GetValueToDisplay()}"; 143return Update(Value, input);
BoundTree\BoundDecisionDag.cs (1)
189return d.Value == inputConstant;
FlowAnalysis\NullableWalker_Patterns.cs (2)
582Debug.Assert(t.Value != ConstantValue.Null); 598bool isFalseTest = t.Value == ConstantValue.False;
Generated\BoundNodes.xml.Generated.cs (3)
5372if (value != this.Value || input != this.Input) 12008return node.Update(node.Value, input); 16706new TreeDumperNode("value", node.Value, null),
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (2)
590cases.Add((value: value.Value, label: GetDagNodeLabel(testNode.WhenTrue))); 598cases.Add((value: vd.Value, label: GetDagNodeLabel(p.WhenTrue)));
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
384return MakeValueTest(d.Syntax, input, d.Value);