1 write to _root
Microsoft.CodeAnalysis.CSharp (1)
Utilities\TypeUnionValueSet.cs (1)
71
_root
= root;
30 references to _root
Microsoft.CodeAnalysis.CSharp (30)
Utilities\TypeUnionValueSet.cs (30)
46
/// instances of that type are definitely not in the set. Otherwise, <see cref="
_root
"/>
126
if (
_root
== (object)IsTrueNode.Instance)
130
else if (
_root
== (object)IsFalseNode.Instance)
136
_lazyMightIncludeNonNull = TryGetSampleType(
_root
, ref useSiteInfo) is not null;
149
if (
_root
== (object)IsTrueNode.Instance)
153
else if (
_root
== (object)IsFalseNode.Instance)
162
bool? result = EvaluateNodeForInputValue(
_root
, null, ref discardedInfo);
182
/// <seealso cref="
_root
"/>
295
var sample = TryGetSampleType(
_root
, ref useSiteInfo);
359
if (
_root
== (object)IsTrueNode.Instance)
364
if (
_root
== (object)IsFalseNode.Instance)
369
if (
_root
is not NotNode { Negated: var negated })
371
negated = new NotNode(
_root
);
381
if (
_root
== (object)IsFalseNode.Instance)
386
if (other.
_root
== (object)IsFalseNode.Instance)
391
if (
_root
== (object)IsTrueNode.Instance)
396
if (other.
_root
== (object)IsTrueNode.Instance)
401
return new TypeUnionValueSet(_typesInUnion, new AndNode(
_root
, other.
_root
), _conversions);
408
if (
_root
== (object)IsFalseNode.Instance)
413
if (other.
_root
== (object)IsFalseNode.Instance)
418
if (
_root
== (object)IsTrueNode.Instance)
423
if (other.
_root
== (object)IsTrueNode.Instance)
428
return new TypeUnionValueSet(_typesInUnion, new OrNode(
_root
, other.
_root
), _conversions);
443
if (EvaluateNodeForInputValue(
_root
, type, ref useSiteInfo) == false)
449
return TryGetSampleType(new AndNode(
_root
, new NotNode(new IsTypeNode(type))), ref useSiteInfo) is null;
457
var copy = new TypeUnionValueSet(_typesInUnion,
_root
, _conversions);
466
if (
_root
== (object)IsTrueNode.Instance)
471
return prefix +
_root
.ToString();