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
"/>
314
var sample = TryGetSampleType(
_root
, ref useSiteInfo);
378
if (
_root
== (object)IsTrueNode.Instance)
383
if (
_root
== (object)IsFalseNode.Instance)
388
if (
_root
is not NotNode { Negated: var negated })
390
negated = new NotNode(
_root
);
400
if (
_root
== (object)IsFalseNode.Instance)
405
if (other.
_root
== (object)IsFalseNode.Instance)
410
if (
_root
== (object)IsTrueNode.Instance)
415
if (other.
_root
== (object)IsTrueNode.Instance)
420
return new TypeUnionValueSet(_typesInUnion, new AndNode(
_root
, other.
_root
), _conversions);
427
if (
_root
== (object)IsFalseNode.Instance)
432
if (other.
_root
== (object)IsFalseNode.Instance)
437
if (
_root
== (object)IsTrueNode.Instance)
442
if (other.
_root
== (object)IsTrueNode.Instance)
447
return new TypeUnionValueSet(_typesInUnion, new OrNode(
_root
, other.
_root
), _conversions);
462
if (EvaluateNodeForInputValue(
_root
, type, ref useSiteInfo) == false)
468
return TryGetSampleType(new AndNode(
_root
, new NotNode(new IsTypeNode(type))), ref useSiteInfo) is null;
476
var copy = new TypeUnionValueSet(_typesInUnion,
_root
, _conversions);
485
if (
_root
== (object)IsTrueNode.Instance)
490
return prefix +
_root
.ToString();