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