6 implementations of IsEmpty
Microsoft.CodeAnalysis.CSharp (6)
Utilities\ValueSetFactory.BoolValueSet.cs (1)
39
bool IValueSet.
IsEmpty
=> !_hasFalse && !_hasTrue;
Utilities\ValueSetFactory.EnumeratedValueSet.cs (1)
46
public bool
IsEmpty
=> _included && _membersIncludedOrExcluded.IsEmpty;
Utilities\ValueSetFactory.FloatingValueSet.cs (1)
49
public bool
IsEmpty
=> !_hasNaN && _numbers.IsEmpty;
Utilities\ValueSetFactory.NintValueSet.cs (1)
46
public bool
IsEmpty
=> !_hasSmall && !_hasLarge && _values.IsEmpty;
Utilities\ValueSetFactory.NuintValueSet.cs (1)
37
public bool
IsEmpty
=> !_hasLarge && _values.IsEmpty;
Utilities\ValueSetFactory.NumericValueSet.cs (1)
54
public bool
IsEmpty
=> _intervals.Length == 0;
18 references to IsEmpty
Microsoft.CodeAnalysis.CSharp (18)
Binder\DecisionDagBuilder.cs (8)
502
if (ValueSetFactory.ForInput(input)?.Related(BinaryOperatorKind.Equal, constant.ConstantValue).
IsEmpty
== true)
715
if (values?.
IsEmpty
== true)
719
else if (values?.Complement().
IsEmpty
!= true)
1171
return (whenTrueValues, whenFalseValues, !fromTestPassing.
IsEmpty
, !fromTestFailing.
IsEmpty
);
1489
Debug.Assert(!lengthValues.
IsEmpty
);
2257
if (lengthValues.Intersect(possibleValues).
IsEmpty
)
2259
if (lengthValues.Complement().Intersect(possibleValues).
IsEmpty
)
Binder\PatternExplainer.cs (2)
511
if (remainingValues.Complement().
IsEmpty
)
644
if (remainingValues.
IsEmpty
)
Utilities\ValueSetFactory.EnumeratedValueSetFactory.cs (1)
51
Debug.Assert(result.
IsEmpty
);
Utilities\ValueSetFactory.FloatingValueSet.cs (2)
49
public bool IsEmpty => !_hasNaN && _numbers.
IsEmpty
;
58
if (!_numbers.
IsEmpty
)
Utilities\ValueSetFactory.NintValueSet.cs (3)
46
public bool IsEmpty => !_hasSmall && !_hasLarge && _values.
IsEmpty
;
55
if (!_values.
IsEmpty
)
136
if (_hasSmall && !_values.
IsEmpty
)
Utilities\ValueSetFactory.NuintValueSet.cs (2)
37
public bool IsEmpty => !_hasLarge && _values.
IsEmpty
;
46
if (!_values.
IsEmpty
)