12 instantiations of EnumeratedValueSet
Microsoft.CodeAnalysis.CSharp (12)
Utilities\ValueSetFactory.EnumeratedValueSet.cs (12)
38=> new EnumeratedValueSet<T>(included: false, ImmutableHashSet<T>.Empty, tc); 41=> new EnumeratedValueSet<T>(included: true, ImmutableHashSet<T>.Empty, tc); 44=> new EnumeratedValueSet<T>(included: true, ImmutableHashSet<T>.Empty.Add(value), tc); 113public IValueSet<T> Complement() => new EnumeratedValueSet<T>(!_included, _membersIncludedOrExcluded, _tc); 128return new EnumeratedValueSet<T>(true, larger._membersIncludedOrExcluded.Intersect(smaller._membersIncludedOrExcluded), _tc); 130return new EnumeratedValueSet<T>(true, larger._membersIncludedOrExcluded.Except(smaller._membersIncludedOrExcluded), _tc); 132return new EnumeratedValueSet<T>(false, larger._membersIncludedOrExcluded.Union(smaller._membersIncludedOrExcluded), _tc); 134return new EnumeratedValueSet<T>(true, smaller._membersIncludedOrExcluded.Except(larger._membersIncludedOrExcluded), _tc); 151return new EnumeratedValueSet<T>(false, larger._membersIncludedOrExcluded.Intersect(smaller._membersIncludedOrExcluded), _tc); 153return new EnumeratedValueSet<T>(false, larger._membersIncludedOrExcluded.Except(smaller._membersIncludedOrExcluded), _tc); 155return new EnumeratedValueSet<T>(true, larger._membersIncludedOrExcluded.Union(smaller._membersIncludedOrExcluded), _tc); 157return new EnumeratedValueSet<T>(false, smaller._membersIncludedOrExcluded.Except(larger._membersIncludedOrExcluded), _tc);
14 references to EnumeratedValueSet
Microsoft.CodeAnalysis.CSharp (14)
Utilities\ValueSetFactory.EnumeratedValueSet.cs (8)
37public static EnumeratedValueSet<T> AllValues(IEquatableValueTC<T> tc) 40public static EnumeratedValueSet<T> NoValues(IEquatableValueTC<T> tc) 43internal static EnumeratedValueSet<T> Including(T value, IEquatableValueTC<T> tc) 121var other = (EnumeratedValueSet<T>)o; 144var other = (EnumeratedValueSet<T>)o; 165if (obj is not EnumeratedValueSet<T> other)
Utilities\ValueSetFactory.EnumeratedValueSetFactory.cs (6)
21IValueSet IValueSetFactory.AllValues => EnumeratedValueSet<T>.AllValues(_tc); 23IValueSet IValueSetFactory.NoValues => EnumeratedValueSet<T>.NoValues(_tc); 32return EnumeratedValueSet<T>.Including(value, _tc); 34return EnumeratedValueSet<T>.AllValues(_tc); // supported for error recovery 39value.IsBad || value.IsNull ? EnumeratedValueSet<T>.AllValues(_tc) : this.Related(relation, _tc.FromConstantValue(value)); 50IValueSet<T> result = EnumeratedValueSet<T>.NoValues(_tc);