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();
33 references to TypeParameterBounds
Microsoft.CodeAnalysis.CSharp (33)
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)
43private TypeParameterBounds _lazyBounds = TypeParameterBounds.Unset; 618var bounds = this.GetBounds(inProgress); 624var bounds = this.GetBounds(inProgress); 630var bounds = this.GetBounds(inProgress); 636var bounds = this.GetBounds(inProgress); 658private TypeParameterBounds GetBounds(ConsList<TypeParameterSymbol> inProgress) 663if (_lazyBounds == TypeParameterBounds.Unset) 671var bounds = this.ResolveBounds(this.ContainingAssembly.CorLibrary, inProgress.Prepend(this), constraintTypes, inherited, currentCompilation: null, 694Interlocked.CompareExchange(ref _lazyBounds, bounds, TypeParameterBounds.Unset);
Symbols\Source\SourceTypeParameterSymbol.cs (15)
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) 655protected abstract override TypeParameterBounds ResolveBounds(ConsList<TypeParameterSymbol> inProgress, BindingDiagnosticBag diagnostics); 764protected override TypeParameterBounds ResolveBounds(ConsList<TypeParameterSymbol> inProgress, BindingDiagnosticBag diagnostics) 1003protected 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;