8 references to DefaultInstance
Microsoft.CodeAnalysis.CSharp (8)
Utilities\ValueSetFactory.cs (1)
19
internal static readonly IValueSetFactory<int> ForInt = new NumericValueSetFactory<int>(IntTC.
DefaultInstance
);
Utilities\ValueSetFactory.NintValueSet.cs (2)
17
public static readonly NintValueSet AllValues = new NintValueSet(hasSmall: true, values: NumericValueSet<int>.AllValues(IntTC.
DefaultInstance
), hasLarge: true);
19
public static readonly NintValueSet NoValues = new NintValueSet(hasSmall: false, values: NumericValueSet<int>.NoValues(IntTC.
DefaultInstance
), hasLarge: false);
Utilities\ValueSetFactory.NintValueSetFactory.cs (5)
27
values: new NumericValueSetFactory<int>(IntTC.
DefaultInstance
).Related(relation, value),
36
values: (IValueSet<int>)new NumericValueSetFactory<int>(IntTC.
DefaultInstance
).Random(expectedSize, random),
41
ConstantValue IValueSetFactory.RandomValue(Random random) => ConstantValue.CreateNativeInt(IntTC.
DefaultInstance
.Random(random));
45
return value.IsBad ? NintValueSet.AllValues : Related(relation, IntTC.
DefaultInstance
.FromConstantValue(value));
50
var tc = IntTC.
DefaultInstance
;