1 write to Negated
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
8698
this.
Negated
= negated;
23 references to Negated
Microsoft.CodeAnalysis.CSharp (23)
Binder\DecisionDagBuilder.cs (1)
1073
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)
200
BoundPattern negated = RewritePatternWithUnionMatchingToPropertyPattern((BoundPattern)this.Visit(node.
Negated
));
BoundTree\BoundNegatedPattern.cs (3)
17
Debug.Assert(
Negated
.InputType.IsObjectType());
22
Debug.Assert(
Negated
.InputType.Equals(InputType, TypeCompareKind.AllIgnoreOptions));
25
Debug.Assert(
Negated
is not BoundPatternWithUnionMatching);
BoundTree\BoundNode_Source.cs (1)
366
appendSource(negatedPattern.
Negated
);
BoundTree\BoundPattern.cs (1)
37
innerPattern = negatedPattern.
Negated
;
FlowAnalysis\AbstractFlowPass.cs (2)
1044
return !patternMatchesNull(negated.
Negated
);
1085
return !isBoolTest(negated.
Negated
);
FlowAnalysis\DefiniteAssignment.cs (1)
2046
assignPatternVariablesAndMarkReadFields(pat.
Negated
, definitely: false);
FlowAnalysis\NullableWalker_Patterns.cs (2)
108
Visit(node.
Negated
);
221
LearnFromAnyNullPatterns(inputSlot, inputType, p.
Negated
);
FlowAnalysis\VariablesDeclaredWalker.cs (1)
111
NoteDeclaredPatternVariables(negatedPattern.
Negated
);
Generated\BoundNodes.xml.Generated.cs (5)
8714
if (negated != this.
Negated
|| isUnionMatching != this.IsUnionMatching || !TypeSymbol.Equals(inputType, this.InputType, TypeCompareKind.ConsiderEverything) || !TypeSymbol.Equals(narrowedType, this.NarrowedType, TypeCompareKind.ConsiderEverything))
11052
this.Visit(node.
Negated
);
12629
BoundPattern negated = (BoundPattern)this.Visit(node.
Negated
);
15315
BoundPattern negated = (BoundPattern)this.Visit(node.
Negated
);
17588
new TreeDumperNode("negated", null, new TreeDumperNode[] { Visit(node.
Negated
, null) }),
Operations\CSharpOperationFactory.cs (1)
2701
(IPatternOperation)Create(boundNegatedPattern.
Negated
),