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
();
32 references to TypeParameterBounds
Microsoft.CodeAnalysis.CSharp (32)
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)
42
private
TypeParameterBounds
_lazyBounds =
TypeParameterBounds
.Unset;
617
var
bounds = this.GetBounds(inProgress);
623
var
bounds = this.GetBounds(inProgress);
629
var
bounds = this.GetBounds(inProgress);
635
var
bounds = this.GetBounds(inProgress);
657
private
TypeParameterBounds
GetBounds(ConsList<TypeParameterSymbol> inProgress)
662
if (_lazyBounds ==
TypeParameterBounds
.Unset)
670
var
bounds = this.ResolveBounds(this.ContainingAssembly.CorLibrary, inProgress.Prepend(this), constraintTypes, inherited, currentCompilation: null,
693
Interlocked.CompareExchange(ref _lazyBounds, bounds,
TypeParameterBounds
.Unset);
Symbols\Source\SourceTypeParameterSymbol.cs (14)
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)
730
protected override
TypeParameterBounds
ResolveBounds(ConsList<TypeParameterSymbol> inProgress, BindingDiagnosticBag diagnostics)
987
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;