1 write to Negated
Microsoft.CodeAnalysis.CSharp (1)
Binder\DecisionDagBuilder.cs (1)
3957
private Not(Tests negated) =>
Negated
= negated;
10 references to Negated
Microsoft.CodeAnalysis.CSharp (10)
Binder\DecisionDagBuilder.cs (10)
275
testsToSimplify.Push(n.
Negated
);
3962
Tests.Not n => n.
Negated
, // double negative
3979
Create(
Negated
.RemoveEvaluationAndUpdateTempReferences(builder, state, bindings, tempMap, e)),
3985
public override Tests RewriteNestedLengthTests() => Create(
Negated
.RewriteNestedLengthTests());
3986
public override BoundDagTest ComputeSelectedTest(bool forLowering, ref bool suitableForLowering) =>
Negated
.ComputeSelectedTest(forLowering, ref suitableForLowering);
3987
public override string Dump(Func<BoundDagTest, string> dump) => $"Not ({
Negated
.Dump(dump)})";
3998
Negated
.Filter(builder, test, state, whenTrueValues, whenFalseValues, out var whenTestTrue, out var whenTestFalse, ref foundExplicitNullTest);
4002
public override bool Equals(object? obj) => this == obj || obj is Not n &&
Negated
.Equals(n.
Negated
);
4003
public override int GetHashCode() => Hash.Combine(
Negated
.GetHashCode(), typeof(Not).GetHashCode());