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