13 references to NonNegativeIntTC
Microsoft.CodeAnalysis.CSharp (13)
Utilities\ValueSetFactory.NonNegativeIntValueSetFactory.cs (13)
20private readonly IValueSetFactory<int> _underlying = NumericValueSetFactory<int, NonNegativeIntTC>.Instance;
22public IValueSet AllValues => NumericValueSet<int, NonNegativeIntTC>.AllValues;
24public IValueSet NoValues => NumericValueSet<int, NonNegativeIntTC>.NoValues;
32return NumericValueSet<int, NonNegativeIntTC>.NoValues;
33return new NumericValueSet<int, NonNegativeIntTC>(0, value - 1);
36return NumericValueSet<int, NonNegativeIntTC>.NoValues;
37return new NumericValueSet<int, NonNegativeIntTC>(0, value);
40return NumericValueSet<int, NonNegativeIntTC>.NoValues;
41return new NumericValueSet<int, NonNegativeIntTC>(Math.Max(0, value + 1), int.MaxValue);
43return new NumericValueSet<int, NonNegativeIntTC>(Math.Max(0, value), int.MaxValue);
46return NumericValueSet<int, NonNegativeIntTC>.NoValues;
47return new NumericValueSet<int, NonNegativeIntTC>(value, value);
58value.IsBad ? AllValues : Related(relation, default(NonNegativeIntTC).FromConstantValue(value));