2 instantiations of TypeParameterBounds
Microsoft.CodeAnalysis.CSharp (2)
Symbols\ConstraintsHelper.cs (1)
333
var bounds = new
TypeParameterBounds
(constraintTypes, interfaces, effectiveBaseClass, deducedBaseType);
Symbols\TypeParameterBounds.cs (1)
18
public static readonly TypeParameterBounds Unset = new
TypeParameterBounds
();
33 references to TypeParameterBounds
Microsoft.CodeAnalysis.CSharp (33)
Symbols\ConstraintsHelper.cs (5)
71
public static
TypeParameterBounds
ResolveBounds(
82
var
bounds = typeParameter.ResolveBounds(corLibrary, inProgress, constraintTypes, inherited, currentCompilation, diagnosticsBuilder, ref useSiteDiagnosticsBuilder,
128
public static
TypeParameterBounds
ResolveBounds(
333
var
bounds = new TypeParameterBounds(constraintTypes, interfaces, effectiveBaseClass, deducedBaseType);
466
TypeParameterBounds
bounds,
Symbols\Metadata\PE\PETypeParameterSymbol.cs (10)
43
private
TypeParameterBounds
_lazyBounds =
TypeParameterBounds
.Unset;
618
var
bounds = this.GetBounds(inProgress);
624
var
bounds = this.GetBounds(inProgress);
630
var
bounds = this.GetBounds(inProgress);
636
var
bounds = this.GetBounds(inProgress);
658
private
TypeParameterBounds
GetBounds(ConsList<TypeParameterSymbol> inProgress)
663
if (_lazyBounds ==
TypeParameterBounds
.Unset)
671
var
bounds = this.ResolveBounds(this.ContainingAssembly.CorLibrary, inProgress.Prepend(this), constraintTypes, inherited, currentCompilation: null,
694
Interlocked.CompareExchange(ref _lazyBounds, bounds,
TypeParameterBounds
.Unset);
Symbols\Source\SourceTypeParameterSymbol.cs (15)
32
private
TypeParameterBounds
_lazyBounds =
TypeParameterBounds
.Unset;
94
var
bounds = this.GetBounds(inProgress);
100
var
bounds = this.GetBounds(inProgress);
106
var
bounds = this.GetBounds(inProgress);
112
var
bounds = this.GetBounds(inProgress);
221
private
TypeParameterBounds
GetBounds(ConsList<TypeParameterSymbol> inProgress)
229
var
bounds = this.ResolveBounds(inProgress, diagnostics);
231
if (ReferenceEquals(Interlocked.CompareExchange(ref _lazyBounds, bounds,
TypeParameterBounds
.Unset),
TypeParameterBounds
.Unset))
246
protected abstract
TypeParameterBounds
ResolveBounds(ConsList<TypeParameterSymbol> inProgress, BindingDiagnosticBag diagnostics);
588
protected override
TypeParameterBounds
ResolveBounds(ConsList<TypeParameterSymbol> inProgress, BindingDiagnosticBag diagnostics)
655
protected abstract override
TypeParameterBounds
ResolveBounds(ConsList<TypeParameterSymbol> inProgress, BindingDiagnosticBag diagnostics);
764
protected override
TypeParameterBounds
ResolveBounds(ConsList<TypeParameterSymbol> inProgress, BindingDiagnosticBag diagnostics)
1003
protected override
TypeParameterBounds
ResolveBounds(ConsList<TypeParameterSymbol> inProgress, BindingDiagnosticBag diagnostics)
Symbols\TypeParameterBounds.cs (3)
18
public static readonly
TypeParameterBounds
Unset = new TypeParameterBounds();
85
internal static bool IsSet(this
TypeParameterBounds
boundsOpt)
87
return boundsOpt !=
TypeParameterBounds
.Unset;