2 instantiations of TypeParameterBounds
Microsoft.CodeAnalysis.CSharp (2)
Symbols\ConstraintsHelper.cs (1)
333var 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)
71public static TypeParameterBounds ResolveBounds( 82var bounds = typeParameter.ResolveBounds(corLibrary, inProgress, constraintTypes, inherited, currentCompilation, diagnosticsBuilder, ref useSiteDiagnosticsBuilder, 128public static TypeParameterBounds ResolveBounds( 333var bounds = new TypeParameterBounds(constraintTypes, interfaces, effectiveBaseClass, deducedBaseType); 466TypeParameterBounds bounds,
Symbols\Metadata\PE\PETypeParameterSymbol.cs (10)
42private TypeParameterBounds _lazyBounds = TypeParameterBounds.Unset; 617var bounds = this.GetBounds(inProgress); 623var bounds = this.GetBounds(inProgress); 629var bounds = this.GetBounds(inProgress); 635var bounds = this.GetBounds(inProgress); 657private TypeParameterBounds GetBounds(ConsList<TypeParameterSymbol> inProgress) 662if (_lazyBounds == TypeParameterBounds.Unset) 670var bounds = this.ResolveBounds(this.ContainingAssembly.CorLibrary, inProgress.Prepend(this), constraintTypes, inherited, currentCompilation: null, 693Interlocked.CompareExchange(ref _lazyBounds, bounds, TypeParameterBounds.Unset);
Symbols\Source\SourceTypeParameterSymbol.cs (14)
32private TypeParameterBounds _lazyBounds = TypeParameterBounds.Unset; 94var bounds = this.GetBounds(inProgress); 100var bounds = this.GetBounds(inProgress); 106var bounds = this.GetBounds(inProgress); 112var bounds = this.GetBounds(inProgress); 221private TypeParameterBounds GetBounds(ConsList<TypeParameterSymbol> inProgress) 229var bounds = this.ResolveBounds(inProgress, diagnostics); 231if (ReferenceEquals(Interlocked.CompareExchange(ref _lazyBounds, bounds, TypeParameterBounds.Unset), TypeParameterBounds.Unset)) 246protected abstract TypeParameterBounds ResolveBounds(ConsList<TypeParameterSymbol> inProgress, BindingDiagnosticBag diagnostics); 588protected override TypeParameterBounds ResolveBounds(ConsList<TypeParameterSymbol> inProgress, BindingDiagnosticBag diagnostics) 730protected override TypeParameterBounds ResolveBounds(ConsList<TypeParameterSymbol> inProgress, BindingDiagnosticBag diagnostics) 987protected 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;