1 write to Negated
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
8698
this.
Negated
= negated;
22 references to Negated
Microsoft.CodeAnalysis.CSharp (22)
Binder\DecisionDagBuilder.cs (1)
1099
var tests = MakeTestsAndBindings(input, neg.
Negated
, output: out _, bindings);
Binder\DecisionDagBuilder_CheckOrReachability.cs (4)
902
if (pattern is BoundNegatedPattern {
Negated
: BoundDiscardPattern })
923
this.Visit(node.
Negated
);
935
if (node is BoundNegatedPattern {
Negated
: var negated })
1010
WithInputTypeCheckIfNeeded(negatedPattern.
Negated
, inputType),
Binder\UnionMatchingRewriter.cs (1)
199
BoundPattern negated = RewritePatternWithUnionMatchingToPropertyPattern((BoundPattern)this.Visit(node.
Negated
));
BoundTree\BoundNegatedPattern.cs (2)
15
Debug.Assert(
Negated
.InputType.Equals(InputType, TypeCompareKind.AllIgnoreOptions));
16
Debug.Assert(
Negated
is not BoundPatternWithUnionMatching);
BoundTree\BoundNode_Source.cs (1)
366
appendSource(negatedPattern.
Negated
);
BoundTree\BoundPattern.cs (1)
26
innerPattern = negatedPattern.
Negated
;
FlowAnalysis\AbstractFlowPass.cs (2)
996
return !patternMatchesNull(negated.
Negated
);
1037
return !isBoolTest(negated.
Negated
);
FlowAnalysis\DefiniteAssignment.cs (1)
2046
assignPatternVariablesAndMarkReadFields(pat.
Negated
, definitely: false);
FlowAnalysis\NullableWalker_Patterns.cs (2)
109
Visit(node.
Negated
);
224
LearnFromAnyNullPatterns(inputSlot, inputType, hasUnionMatching: false, p.
Negated
);
FlowAnalysis\VariablesDeclaredWalker.cs (1)
111
NoteDeclaredPatternVariables(negatedPattern.
Negated
);
Generated\BoundNodes.xml.Generated.cs (5)
8712
if (negated != this.
Negated
|| !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
11050
this.Visit(node.
Negated
);
12627
BoundPattern negated = (BoundPattern)this.Visit(node.
Negated
);
15313
BoundPattern negated = (BoundPattern)this.Visit(node.
Negated
);
17586
new TreeDumperNode("negated", null, new TreeDumperNode[] { Visit(node.
Negated
, null) }),
Operations\CSharpOperationFactory.cs (1)
2701
(IPatternOperation)Create(boundNegatedPattern.
Negated
),