1 write to _underlying
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\TypeParameterSymbol.cs (1)
20
_underlying
= underlying;
23 references to _underlying
Microsoft.CodeAnalysis.CSharp (23)
Symbols\PublicModel\TypeParameterSymbol.cs (23)
25
Debug.Assert(nullableAnnotation !=
_underlying
.DefaultNullableAnnotation);
27
return new TypeParameterSymbol(
_underlying
, nullableAnnotation);
30
internal override Symbols.TypeSymbol UnderlyingTypeSymbol =>
_underlying
;
31
internal override CSharp.Symbol UnderlyingSymbol =>
_underlying
;
32
internal override Symbols.NamespaceOrTypeSymbol UnderlyingNamespaceOrTypeSymbol =>
_underlying
;
33
internal Symbols.TypeParameterSymbol UnderlyingTypeParameterSymbol =>
_underlying
;
36
_underlying
.ReferenceTypeConstraintIsNullable switch
38
false when !
_underlying
.HasReferenceTypeConstraint => CodeAnalysis.NullableAnnotation.None,
48
return
_underlying
.TypeParameterKind;
54
get { return
_underlying
.DeclaringMethod.GetPublicSymbol(); }
59
get { return
_underlying
.DeclaringType.GetPublicSymbol(); }
66
return
_underlying
.ConstraintTypesNoUseSiteDiagnostics.GetPublicSymbols();
71
_underlying
.ConstraintTypesNoUseSiteDiagnostics.ToPublicAnnotations();
75
get { return
_underlying
.OriginalDefinition.GetPublicSymbol(); }
80
get { return
_underlying
.ReducedFrom.GetPublicSymbol(); }
83
int ITypeParameterSymbol.Ordinal =>
_underlying
.Ordinal;
85
VarianceKind ITypeParameterSymbol.Variance =>
_underlying
.Variance;
87
bool ITypeParameterSymbol.HasReferenceTypeConstraint =>
_underlying
.HasReferenceTypeConstraint;
89
bool ITypeParameterSymbol.HasValueTypeConstraint =>
_underlying
.HasValueTypeConstraint;
91
bool ITypeParameterSymbol.AllowsRefLikeType =>
_underlying
.AllowsRefLikeType;
93
bool ITypeParameterSymbol.HasUnmanagedTypeConstraint =>
_underlying
.HasUnmanagedTypeConstraint;
95
bool ITypeParameterSymbol.HasNotNullConstraint =>
_underlying
.HasNotNullConstraint;
97
bool ITypeParameterSymbol.HasConstructorConstraint =>
_underlying
.HasConstructorConstraint;