6 implementations of IsEmpty
Microsoft.CodeAnalysis.CSharp (6)
Utilities\ValueSetFactory.BoolValueSet.cs (1)
39
bool IConstantValueSet.
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;
24 references to IsEmpty
Microsoft.CodeAnalysis.CSharp (18)
Binder\DecisionDagBuilder.cs (8)
909
if (ValueSetFactory.ForInput(input)?.Related(BinaryOperatorKind.Equal, constantValue).
IsEmpty
== true)
1159
if (values?.
IsEmpty
== true)
1163
else if (((IConstantValueSet?)values?.Complement())?.
IsEmpty
!= true)
1768
return (whenTrueValues, whenFalseValues, !fromTestPassing.
IsEmpty
, !fromTestFailing.
IsEmpty
);
3499
if (((IConstantValueSet)lengthValues.Intersect(possibleValues)).
IsEmpty
)
3501
if (((IConstantValueSet)lengthValues.Complement().Intersect(possibleValues)).
IsEmpty
)
3816
Debug.Assert(!lengthValues.
IsEmpty
);
Binder\PatternExplainer.cs (2)
567
if (((IConstantValueSet)remainingValues.Complement()).
IsEmpty
)
775
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
)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Utilities\ValueSetTests.cs (6)
283
Assert.Equal(values.ToString().Length == 0, values.
IsEmpty
);
323
Assert.False(none.
IsEmpty
);
338
Assert.False(none.
IsEmpty
);
397
Assert.True(em.
IsEmpty
);
417
Assert.True(s1.Intersect(s2).
IsEmpty
);
418
Assert.True(s1.Complement().Union(s2.Complement()).Complement().
IsEmpty
);