2 instantiations of TypeParameterBounds
Microsoft.CodeAnalysis.CSharp (2)
Symbols\ConstraintsHelper.cs (1)
304var bounds = new TypeParameterBounds(constraintTypes, interfaces, effectiveBaseClass, deducedBaseType);
Symbols\TypeParameterBounds.cs (1)
18public static readonly TypeParameterBounds Unset = new TypeParameterBounds();
32 references to TypeParameterBounds
Microsoft.CodeAnalysis.CSharp (32)
Symbols\ConstraintsHelper.cs (5)
70public static TypeParameterBounds ResolveBounds( 81var bounds = typeParameter.ResolveBounds(corLibrary, inProgress, constraintTypes, inherited, currentCompilation, diagnosticsBuilder, ref useSiteDiagnosticsBuilder, 99public static TypeParameterBounds ResolveBounds( 304var bounds = new TypeParameterBounds(constraintTypes, interfaces, effectiveBaseClass, deducedBaseType); 437TypeParameterBounds bounds,
Symbols\Metadata\PE\PETypeParameterSymbol.cs (10)
42private TypeParameterBounds _lazyBounds = TypeParameterBounds.Unset; 609var bounds = this.GetBounds(inProgress); 615var bounds = this.GetBounds(inProgress); 621var bounds = this.GetBounds(inProgress); 627var bounds = this.GetBounds(inProgress); 649private TypeParameterBounds GetBounds(ConsList<TypeParameterSymbol> inProgress) 654if (_lazyBounds == TypeParameterBounds.Unset) 662var bounds = this.ResolveBounds(this.ContainingAssembly.CorLibrary, inProgress.Prepend(this), constraintTypes, inherited, currentCompilation: null, 685Interlocked.CompareExchange(ref _lazyBounds, bounds, TypeParameterBounds.Unset);
Symbols\Source\SourceTypeParameterSymbol.cs (14)
31private TypeParameterBounds _lazyBounds = TypeParameterBounds.Unset; 93var bounds = this.GetBounds(inProgress); 99var bounds = this.GetBounds(inProgress); 105var bounds = this.GetBounds(inProgress); 111var bounds = this.GetBounds(inProgress); 220private TypeParameterBounds GetBounds(ConsList<TypeParameterSymbol> inProgress) 228var bounds = this.ResolveBounds(inProgress, diagnostics); 230if (ReferenceEquals(Interlocked.CompareExchange(ref _lazyBounds, bounds, TypeParameterBounds.Unset), TypeParameterBounds.Unset)) 245protected abstract TypeParameterBounds ResolveBounds(ConsList<TypeParameterSymbol> inProgress, BindingDiagnosticBag diagnostics); 574protected override TypeParameterBounds ResolveBounds(ConsList<TypeParameterSymbol> inProgress, BindingDiagnosticBag diagnostics) 707protected override TypeParameterBounds ResolveBounds(ConsList<TypeParameterSymbol> inProgress, BindingDiagnosticBag diagnostics) 955protected override TypeParameterBounds ResolveBounds(ConsList<TypeParameterSymbol> inProgress, BindingDiagnosticBag diagnostics)
Symbols\TypeParameterBounds.cs (3)
18public static readonly TypeParameterBounds Unset = new TypeParameterBounds(); 85internal static bool IsSet(this TypeParameterBounds boundsOpt) 87return boundsOpt != TypeParameterBounds.Unset;