8 types derived from TypeParameterSymbol
Microsoft.CodeAnalysis.VisualBasic (8)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTypeParameterSymbol.vb (1)
17
Inherits
TypeParameterSymbol
Symbols\IndexedTypeParameterSymbol.vb (1)
27
Inherits
TypeParameterSymbol
Symbols\InstanceErrorTypeSymbol.vb (1)
180
Inherits
TypeParameterSymbol
Symbols\ReducedExtensionMethodSymbol.vb (1)
685
Inherits
TypeParameterSymbol
Symbols\Source\CrefTypeParameterSymbol.vb (1)
24
Inherits
TypeParameterSymbol
Symbols\SubstitutableTypeParameterSymbol.vb (1)
15
Inherits
TypeParameterSymbol
Symbols\SubstitutedTypeParameterSymbol.vb (1)
30
Inherits
TypeParameterSymbol
Symbols\Wrapped\WrappedTypeParameterSymbol.vb (1)
18
Inherits
TypeParameterSymbol
285 references to TypeParameterSymbol
Microsoft.CodeAnalysis.VisualBasic (285)
Emit\TypeParameterSymbolAdapter.vb (2)
316
Friend ReadOnly Property AdaptedTypeParameterSymbol As
TypeParameterSymbol
318
Friend Sub New(underlyingTypeParameterSymbol As
TypeParameterSymbol
)
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (2)
71
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
73
Return ImmutableArray(Of
TypeParameterSymbol
).Empty
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTemplateSymbol.vb (4)
38
Private ReadOnly _typeParameters As ImmutableArray(Of
TypeParameterSymbol
)
70
_typeParameters = ImmutableArray(Of
TypeParameterSymbol
).Empty
72
Dim typeParameters = New
TypeParameterSymbol
(arity - 1) {}
128
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
Symbols\ConstraintsHelper.vb (27)
24
Public Sub New(typeParameter As
TypeParameterSymbol
, useSiteInfo As UseSiteInfo(Of AssemblySymbol))
29
Public Sub New(typeParameter As
TypeParameterSymbol
, diagnostic As DiagnosticInfo)
33
Public Sub New(typeParameter As
TypeParameterSymbol
, constraint As TypeParameterConstraint, diagnostic As DiagnosticInfo)
38
Public ReadOnly TypeParameter As
TypeParameterSymbol
96
typeParameter As
TypeParameterSymbol
,
98
inProgress As ConsList(Of
TypeParameterSymbol
),
223
Dim constraintTypeParameter = DirectCast(constraintType,
TypeParameterSymbol
)
617
typeParameters As ImmutableArray(Of
TypeParameterSymbol
),
647
typeParameter As
TypeParameterSymbol
,
721
typeParameter As
TypeParameterSymbol
,
762
Public Function GetNonInterfaceConstraint(typeParameter As
TypeParameterSymbol
, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As TypeSymbol
774
candidate = DirectCast(constraint,
TypeParameterSymbol
).GetNonInterfaceConstraint(useSiteInfo)
796
Public Function HasInterfaceConstraint(typeParameter As
TypeParameterSymbol
) As Boolean
805
If DirectCast(constraint,
TypeParameterSymbol
).HasInterfaceConstraint() Then
829
Public Function GetClassConstraint(typeParameter As
TypeParameterSymbol
, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As NamedTypeSymbol
858
typeParameter As
TypeParameterSymbol
,
871
DirectCast(type,
TypeParameterSymbol
).GetAllConstraints(constraintsBuilder, If(fromConstraintOpt.HasValue, fromConstraintOpt.Value, constraint))
883
New TypeParameterAndConstraint(DirectCast(fromConstraintOpt.Value.TypeConstraint,
TypeParameterSymbol
), constraint.AtLocation(fromConstraintOpt.Value.LocationOpt)),
894
Public Sub New(typeParameter As
TypeParameterSymbol
, constraint As TypeParameterConstraint, Optional isBad As Boolean = False)
900
Public ReadOnly TypeParameter As
TypeParameterSymbol
933
typeParameter As
TypeParameterSymbol
,
943
If DirectCast(typeArgument,
TypeParameterSymbol
).HasConstructorConstraint OrElse typeArgument.IsValueType Then
991
typeParameter As
TypeParameterSymbol
,
1011
typeParameter As
TypeParameterSymbol
,
1123
Dim typeParameter = DirectCast(type,
TypeParameterSymbol
)
1137
Private Function GetConstraintCycleInfo(cycle As ConsList(Of
TypeParameterSymbol
)) As CompoundDiagnosticInfo
1139
Dim previous As
TypeParameterSymbol
= Nothing
Symbols\ErrorMethodSymbol.vb (2)
246
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
248
Return ImmutableArray(Of
TypeParameterSymbol
).Empty
Symbols\ErrorTypeSymbol.vb (2)
198
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
200
Return ImmutableArray(Of
TypeParameterSymbol
).Empty
Symbols\ExtensionMethods.vb (1)
24
Dim typeParameters As New HashSet(Of
TypeParameterSymbol
)
Symbols\IndexedTypeParameterSymbol.vb (7)
29
Private Shared s_parameterPool As
TypeParameterSymbol
() = Array.Empty(Of
TypeParameterSymbol
)()
37
Friend Shared Function GetTypeParameter(index As Integer) As
TypeParameterSymbol
49
Dim newPool = New
TypeParameterSymbol
(0 To newPoolSize - 1) {}
73
Friend Shared Function Take(count As Integer) As ImmutableArray(Of
TypeParameterSymbol
)
78
Dim builder As ArrayBuilder(Of
TypeParameterSymbol
) = ArrayBuilder(Of
TypeParameterSymbol
).GetInstance()
Symbols\InstanceErrorTypeSymbol.vb (4)
19
Private _lazyTypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
26
_lazyTypeParameters = ImmutableArray(Of
TypeParameterSymbol
).Empty
104
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
107
Dim params = New
TypeParameterSymbol
(_arity - 1) {}
Symbols\Metadata\PE\MemberRefMetadataDecoder.vb (2)
57
Dim typeParameter As
TypeParameterSymbol
= Nothing
71
Private Shared Sub GetGenericTypeParameterSymbol(position As Integer, namedType As NamedTypeSymbol, ByRef cumulativeArity As Integer, ByRef typeArgument As
TypeParameterSymbol
)
Symbols\Metadata\PE\PEMethodSymbol.vb (8)
39
Private _lazyTypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
1012
ImmutableArray(Of
TypeParameterSymbol
).Empty)
1057
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
1079
Private Function EnsureTypeParametersAreLoaded(ByRef errorInfo As DiagnosticInfo) As ImmutableArray(Of
TypeParameterSymbol
)
1088
Private Function LoadTypeParameters(ByRef errorInfo As DiagnosticInfo) As ImmutableArray(Of
TypeParameterSymbol
)
1095
Return ImmutableArray(Of
TypeParameterSymbol
).Empty
1097
Dim ownedParams = ImmutableArray.CreateBuilder(Of
TypeParameterSymbol
)(gpHandles.Count)
1106
Return ImmutableArray(Of
TypeParameterSymbol
).Empty
Symbols\Metadata\PE\PENamedTypeSymbol.vb (4)
58
Private _lazyTypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
153
_lazyTypeParameters = ImmutableArray(Of
TypeParameterSymbol
).Empty
842
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
867
StaticCast(Of
TypeParameterSymbol
).From(ownedParams.AsImmutableOrNull),
Symbols\Metadata\PE\PETypeParameterSymbol.vb (1)
323
Friend Overrides Sub ResolveConstraints(inProgress As ConsList(Of
TypeParameterSymbol
))
Symbols\MethodSignatureComparer.vb (2)
858
Friend Shared Function HaveSameConstraints(typeParameter1 As
TypeParameterSymbol
,
860
typeParameter2 As
TypeParameterSymbol
,
Symbols\MethodSymbol.vb (5)
68
Public MustOverride ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
767
Public Overridable Function GetTypeInferredDuringReduction(reducedFromTypeParameter As
TypeParameterSymbol
) As TypeSymbol
774
Friend Overridable ReadOnly Property FixedTypeParameters As ImmutableArray(Of KeyValuePair(Of
TypeParameterSymbol
, TypeSymbol))
776
Return ImmutableArray(Of KeyValuePair(Of
TypeParameterSymbol
, TypeSymbol)).Empty
954
Return Me.GetTypeInferredDuringReduction(reducedFromTypeParameter.EnsureVbSymbolOrNothing(Of
TypeParameterSymbol
)(NameOf(reducedFromTypeParameter)))
Symbols\NamedTypeSymbol.vb (1)
52
Public MustOverride ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
Symbols\NamedTypeSymbolExtensions.vb (1)
97
Friend Function HaveVariance(this As ImmutableArray(Of
TypeParameterSymbol
)) As Boolean
Symbols\ReducedExtensionMethodSymbol.vb (19)
24
Private ReadOnly _fixedTypeParameters As ImmutableArray(Of KeyValuePair(Of
TypeParameterSymbol
, TypeSymbol))
64
Dim hashSetOfTypeParametersToFix As New HashSet(Of
TypeParameterSymbol
)
68
Dim typeParametersToFixArray As ImmutableArray(Of
TypeParameterSymbol
) = Nothing
86
For Each typeParameter As
TypeParameterSymbol
In hashSetOfTypeParametersToFix
125
Dim typeParametersToFix = ArrayBuilder(Of
TypeParameterSymbol
).GetInstance(toFixCount)
189
Dim fixedTypeParameters = ImmutableArray(Of KeyValuePair(Of
TypeParameterSymbol
, TypeSymbol)).Empty
192
Dim fixed = ArrayBuilder(Of KeyValuePair(Of
TypeParameterSymbol
, TypeSymbol)).GetInstance(typeParametersToFixArray.Length)
195
fixed.Add(New KeyValuePair(Of
TypeParameterSymbol
, TypeSymbol)(typeParametersToFixArray(i), fixWithArray(i)))
209
fixedTypeParameters As ImmutableArray(Of KeyValuePair(Of
TypeParameterSymbol
, TypeSymbol)),
236
Dim fixed As KeyValuePair(Of
TypeParameterSymbol
, TypeSymbol) = fixedTypeParameters(i)
270
Friend Overrides ReadOnly Property FixedTypeParameters As ImmutableArray(Of KeyValuePair(Of
TypeParameterSymbol
, TypeSymbol))
276
Public Overrides Function GetTypeInferredDuringReduction(reducedFromTypeParameter As
TypeParameterSymbol
) As TypeSymbol
285
For Each pair As KeyValuePair(Of
TypeParameterSymbol
, TypeSymbol) In _fixedTypeParameters
312
For Each pair As KeyValuePair(Of
TypeParameterSymbol
, TypeSymbol) In _fixedTypeParameters
371
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
373
Return StaticCast(Of
TypeParameterSymbol
).From(_curriedTypeParameters)
688
Private ReadOnly _curriedFromTypeParameter As
TypeParameterSymbol
691
Public Sub New(curriedMethod As ReducedExtensionMethodSymbol, curriedFromTypeParameter As
TypeParameterSymbol
, ordinal As Integer)
715
Public Overrides ReadOnly Property ReducedFrom As
TypeParameterSymbol
Symbols\Retargeting\RetargetingMethodSymbol.vb (3)
37
Private _lazyTypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
107
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
111
_lazyTypeParameters = ImmutableArray(Of
TypeParameterSymbol
).Empty
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (3)
39
Private _lazyTypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
87
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
91
_lazyTypeParameters = ImmutableArray(Of
TypeParameterSymbol
).Empty
Symbols\Retargeting\RetargetingSymbolTranslator.vb (12)
68
Dim typeParameter = DirectCast(symbol,
TypeParameterSymbol
)
478
Dim newParameters = ArrayBuilder(Of
TypeParameterSymbol
).GetInstance(newArguments.Count)
584
Public Overridable Function Retarget(typeParameter As
TypeParameterSymbol
) As
TypeParameterSymbol
585
Return DirectCast(SymbolMap.GetOrAdd(typeParameter, _retargetingModule._createRetargetingTypeParameter),
TypeParameterSymbol
)
867
Public Function Retarget(list As ImmutableArray(Of
TypeParameterSymbol
)) As ImmutableArray(Of
TypeParameterSymbol
)
868
Dim parameters = ArrayBuilder(Of
TypeParameterSymbol
).GetInstance(list.Length)
870
For Each tps As
TypeParameterSymbol
In list
998
Public Overrides Function Retarget(typeParameter As
TypeParameterSymbol
) As
TypeParameterSymbol
1150
Public Overrides Function VisitTypeParameter(symbol As
TypeParameterSymbol
, options As RetargetOptions) As Symbol
Symbols\Retargeting\RetargetingTypeParameterSymbol.vb (3)
32
Private ReadOnly _underlyingTypeParameter As
TypeParameterSymbol
34
Public Sub New(retargetingModule As RetargetingModuleSymbol, underlyingTypeParameter As
TypeParameterSymbol
)
53
Public ReadOnly Property UnderlyingTypeParameter As
TypeParameterSymbol
Symbols\SignatureOnlyMethodSymbol.vb (3)
25
Private ReadOnly _typeParameters As ImmutableArray(Of
TypeParameterSymbol
)
34
Public Sub New(ByVal name As String, ByVal m_containingType As TypeSymbol, ByVal methodKind As MethodKind, ByVal callingConvention As CallingConvention, ByVal typeParameters As ImmutableArray(Of
TypeParameterSymbol
), ByVal parameters As ImmutableArray(Of ParameterSymbol),
76
Public Overrides ReadOnly Property TypeParameters() As ImmutableArray(Of
TypeParameterSymbol
)
Symbols\Source\CrefTypeParameterSymbol.vb (1)
92
Friend Overrides Sub ResolveConstraints(inProgress As ConsList(Of
TypeParameterSymbol
))
Symbols\Source\CustomEventAccessorSymbol.vb (2)
47
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
49
Return ImmutableArray(Of
TypeParameterSymbol
).Empty
Symbols\Source\ImplicitNamedTypeSymbol.vb (2)
65
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
67
Return ImmutableArray(Of
TypeParameterSymbol
).Empty
Symbols\Source\LambdaSymbol.vb (2)
326
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
328
Return ImmutableArray(Of
TypeParameterSymbol
).Empty
Symbols\Source\SourceDeclareMethodSymbol.vb (2)
108
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
110
Return ImmutableArray(Of
TypeParameterSymbol
).Empty
Symbols\Source\SourceDelegateMethodSymbol.vb (2)
174
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
176
Return ImmutableArray(Of
TypeParameterSymbol
).Empty
Symbols\Source\SourceMemberContainerTypeSymbol.vb (9)
315
TypeParameterSymbol
.EnsureAllConstraintsAreResolved(typeParams)
596
Public ReadOnly Property TypeParameter As
TypeParameterSymbol
668
Dim typeParam = DirectCast(type,
TypeParameterSymbol
)
1029
parameters As ImmutableArray(Of
TypeParameterSymbol
),
1041
For Each param As
TypeParameterSymbol
In parameters
1930
Dim declTypeParams As ImmutableArray(Of
TypeParameterSymbol
) = partialMethod.TypeParameters
1931
Dim implTypeParams As ImmutableArray(Of
TypeParameterSymbol
) = implMethod.TypeParameters
1935
Dim declParameter As
TypeParameterSymbol
= declTypeParams(index)
1936
Dim implParameter As
TypeParameterSymbol
= implTypeParams(index)
Symbols\Source\SourceMemberMethodSymbol.vb (5)
36
Private _lazyTypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
282
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
305
diagBag As BindingDiagnosticBag) As ImmutableArray(Of
TypeParameterSymbol
)
309
Return ImmutableArray(Of
TypeParameterSymbol
).Empty
315
Dim typeParameters(0 To arity - 1) As
TypeParameterSymbol
Symbols\Source\SourceMethodSymbol.vb (2)
2102
Dim fakeTypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
2109
fakeTypeParameters = ImmutableArray(Of
TypeParameterSymbol
).Empty
Symbols\Source\SourceNamedTypeSymbol.vb (7)
29
Private _lazyTypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
769
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
906
Private Function MakeTypeParameters() As ImmutableArray(Of
TypeParameterSymbol
)
909
Return ImmutableArray(Of
TypeParameterSymbol
).Empty
912
Dim typeParameters(0 To n - 1) As
TypeParameterSymbol
951
Friend Sub CheckForDuplicateTypeParameters(typeParameters As ImmutableArray(Of
TypeParameterSymbol
),
971
Private Function ShadowsTypeParameter(typeParameter As
TypeParameterSymbol
) As Boolean
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (4)
968
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
970
Return ImmutableArray(Of
TypeParameterSymbol
).Empty
1316
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
1318
Return ImmutableArray(Of
TypeParameterSymbol
).Empty
Symbols\Source\SourcePropertyAccessorSymbol.vb (2)
299
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
301
Return ImmutableArray(Of
TypeParameterSymbol
).Empty
Symbols\Source\SourceTypeParameterSymbol.vb (4)
104
Friend Overrides Sub ResolveConstraints(inProgress As ConsList(Of
TypeParameterSymbol
))
149
Protected MustOverride ReadOnly Property ContainerTypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
282
Protected Overrides ReadOnly Property ContainerTypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
350
Protected Overrides ReadOnly Property ContainerTypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
Symbols\Source\SynthesizedEntryPointSymbol.vb (2)
117
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
119
Return ImmutableArray(Of
TypeParameterSymbol
).Empty
Symbols\SubstitutableTypeParameterSymbol.vb (1)
39
Public NotOverridable Overrides ReadOnly Property OriginalDefinition As
TypeParameterSymbol
Symbols\SubstitutedErrorType.vb (1)
109
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
Symbols\SubstitutedMethodSymbol.vb (13)
124
Public Overrides Function GetTypeInferredDuringReduction(reducedFromTypeParameter As
TypeParameterSymbol
) As TypeSymbol
132
Friend Overrides ReadOnly Property FixedTypeParameters As ImmutableArray(Of KeyValuePair(Of
TypeParameterSymbol
, TypeSymbol))
325
Public MustOverride Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
527
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
529
Return ImmutableArray(Of
TypeParameterSymbol
).Empty
560
Private ReadOnly _typeParameters As ImmutableArray(Of
TypeParameterSymbol
)
574
Dim typeParametersDefinitions As ImmutableArray(Of
TypeParameterSymbol
) = originalDefinition.TypeParameters
604
_typeParameters = StaticCast(Of
TypeParameterSymbol
).From(typeParameters)
675
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
820
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
862
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
882
For Each pair As KeyValuePair(Of
TypeParameterSymbol
, TypeSymbol) In Me.FixedTypeParameters
886
Dim typeParameters As ImmutableArray(Of
TypeParameterSymbol
) = Me.TypeParameters
Symbols\SubstitutedNamedType.vb (7)
667
Private ReadOnly _typeParameters As ImmutableArray(Of
TypeParameterSymbol
)
680
Dim typeParametersDefinitions As ImmutableArray(Of
TypeParameterSymbol
) = fullInstanceType.TypeParameters
708
_typeParameters = StaticCast(Of
TypeParameterSymbol
).From(typeParameters)
716
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
881
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
883
Return ImmutableArray(Of
TypeParameterSymbol
).Empty
977
Public NotOverridable Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
Symbols\SubstitutedTypeParameterSymbol.vb (6)
38
Private ReadOnly _originalDefinition As
TypeParameterSymbol
40
Public Sub New(originalDefinition As
TypeParameterSymbol
)
75
Public Overrides ReadOnly Property OriginalDefinition As
TypeParameterSymbol
81
Public Overrides ReadOnly Property ReducedFrom As
TypeParameterSymbol
182
Return Equals(TryCast(other,
TypeParameterSymbol
), comparison)
185
Private Overloads Function Equals(other As
TypeParameterSymbol
, comparison As TypeCompareKind) As Boolean
Symbols\SymbolExtensions.vb (1)
122
Friend Function MatchesAnyName(this As ImmutableArray(Of
TypeParameterSymbol
), name As String) As Boolean
Symbols\SynthesizedSymbols\SynthesizedClonedTypeParameterSymbol.vb (6)
29
Private ReadOnly _correspondingMethodTypeParameter As
TypeParameterSymbol
35
Friend Shared Function MakeTypeParameters(origParameters As ImmutableArray(Of
TypeParameterSymbol
), container As Symbol,
36
mapFunction As Func(Of
TypeParameterSymbol
, Symbol,
TypeParameterSymbol
)) As ImmutableArray(Of
TypeParameterSymbol
)
40
Friend Sub New(correspondingMethodTypeParameter As
TypeParameterSymbol
, container As Symbol, name As String, typeMapFactory As Func(Of Symbol, TypeSubstitution))
Symbols\SynthesizedSymbols\SynthesizedDelegateMethodSymbol.vb (2)
388
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
390
Return ImmutableArray(Of
TypeParameterSymbol
).Empty
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (2)
372
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
374
Return ImmutableArray(Of
TypeParameterSymbol
).Empty
Symbols\SynthesizedSymbols\SynthesizedGlobalMethodBase.vb (2)
304
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
306
Return ImmutableArray(Of
TypeParameterSymbol
).Empty
Symbols\SynthesizedSymbols\SynthesizedHotReloadExceptionSymbol.vb (2)
277
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
279
Return ImmutableArray(Of
TypeParameterSymbol
).Empty
Symbols\SynthesizedSymbols\SynthesizedInterfaceImplementationStubSymbol.vb (4)
20
Private ReadOnly _typeParameters As ImmutableArray(Of
TypeParameterSymbol
)
32
Private Shared ReadOnly s_createTypeParameter As Func(Of
TypeParameterSymbol
, Symbol,
TypeParameterSymbol
) =
71
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
Symbols\SynthesizedSymbols\SynthesizedMethod.vb (2)
41
Friend Shared ReadOnly CreateTypeParameter As Func(Of
TypeParameterSymbol
, Symbol,
TypeParameterSymbol
) =
Symbols\SynthesizedSymbols\SynthesizedMethodBase.vb (2)
138
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
140
Return ImmutableArray(Of
TypeParameterSymbol
).Empty
Symbols\Tuples\TupleMethodSymbol.vb (2)
22
Private ReadOnly _typeParameters As ImmutableArray(Of
TypeParameterSymbol
)
101
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
Symbols\Tuples\TupleTypeSymbol.vb (2)
200
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
202
Return ImmutableArray(Of
TypeParameterSymbol
).Empty
Symbols\TypeParameterSymbol.vb (6)
35
Public Overridable Shadows ReadOnly Property OriginalDefinition As
TypeParameterSymbol
175
Friend Shared Sub EnsureAllConstraintsAreResolved(typeParameters As ImmutableArray(Of
TypeParameterSymbol
))
177
typeParameter.ResolveConstraints(ConsList(Of
TypeParameterSymbol
).Empty)
201
Friend Overridable Sub ResolveConstraints(inProgress As ConsList(Of
TypeParameterSymbol
))
247
Return DirectCast(constraint,
TypeParameterSymbol
).IsReferenceTypeIgnoringIsClass()
340
Public Overridable ReadOnly Property ReducedFrom As
TypeParameterSymbol
Symbols\TypeSubstitution.vb (33)
73
Private ReadOnly _pairs As ImmutableArray(Of KeyValuePair(Of
TypeParameterSymbol
, TypeWithModifiers))
85
Public ReadOnly Property Pairs As ImmutableArray(Of KeyValuePair(Of
TypeParameterSymbol
, TypeWithModifiers))
95
Public ReadOnly Property PairsIncludingParent As ImmutableArray(Of KeyValuePair(Of
TypeParameterSymbol
, TypeWithModifiers))
100
Dim pairBuilder = ArrayBuilder(Of KeyValuePair(Of
TypeParameterSymbol
, TypeWithModifiers)).GetInstance()
108
Private Sub AddPairsIncludingParentToBuilder(pairBuilder As ArrayBuilder(Of KeyValuePair(Of
TypeParameterSymbol
, TypeWithModifiers)))
129
Public Function GetSubstitutionFor(tp As
TypeParameterSymbol
) As TypeWithModifiers
187
Public Function GetTypeArgumentsCustomModifiersFor(originalDefinition As
TypeParameterSymbol
) As ImmutableArray(Of CustomModifier)
342
Return Concat(sub1, targetGenericDefinition, ImmutableArray(Of KeyValuePair(Of
TypeParameterSymbol
, TypeWithModifiers)).Empty)
369
params() As
TypeParameterSymbol
,
378
params() As
TypeParameterSymbol
,
397
params As ImmutableArray(Of
TypeParameterSymbol
),
413
Dim pairs = ArrayBuilder(Of KeyValuePair(Of
TypeParameterSymbol
, TypeWithModifiers)).GetInstance()
416
Dim param As
TypeParameterSymbol
= params(i)
450
pairs.Add(New KeyValuePair(Of
TypeParameterSymbol
, TypeWithModifiers)(param, arg))
463
currentParent = Concat(currentParent, targetGenericDefinition, ImmutableArray(Of KeyValuePair(Of
TypeParameterSymbol
, TypeWithModifiers)).Empty)
484
params As ImmutableArray(Of
TypeParameterSymbol
),
513
pairs As ImmutableArray(Of KeyValuePair(Of
TypeParameterSymbol
, TypeWithModifiers))
526
Concat(parent, containingType, ImmutableArray(Of KeyValuePair(Of
TypeParameterSymbol
, TypeWithModifiers)).Empty))
556
Private Sub New(targetGenericDefinition As Symbol, pairs As ImmutableArray(Of KeyValuePair(Of
TypeParameterSymbol
, TypeWithModifiers)), parent As TypeSubstitution)
594
Dim typeParametersDefinitions As ImmutableArray(Of
TypeParameterSymbol
)
606
Dim pairs(typeParametersDefinitions.Length - 1) As KeyValuePair(Of
TypeParameterSymbol
, TypeWithModifiers)
611
pairs(i) = New KeyValuePair(Of
TypeParameterSymbol
, TypeWithModifiers)(typeParametersDefinitions(i), New TypeWithModifiers(alphaRenamedTypeParameters(i)))
635
Dim typeParametersDefinitions As ImmutableArray(Of
TypeParameterSymbol
) = targetMethod.TypeParameters
644
Dim typeParameter = DirectCast(argument.Type,
TypeParameterSymbol
)
666
Dim pairs(countOfMeaningfulPairs - 1) As KeyValuePair(Of
TypeParameterSymbol
, TypeWithModifiers)
673
Dim typeParameter = DirectCast(argument.Type,
TypeParameterSymbol
)
680
pairs(countOfMeaningfulPairs) = New KeyValuePair(Of
TypeParameterSymbol
, TypeWithModifiers)(typeParametersDefinitions(i), argument)
710
Dim pairs = ArrayBuilder(Of KeyValuePair(Of
TypeParameterSymbol
, TypeWithModifiers)).GetInstance()
744
pairs As ArrayBuilder(Of KeyValuePair(Of
TypeParameterSymbol
, TypeWithModifiers)),
780
pairs.Add(New KeyValuePair(Of
TypeParameterSymbol
, TypeWithModifiers)(oldPairs(i).Key, newValue))
812
Dim typeParametersDefinitions As ImmutableArray(Of
TypeParameterSymbol
)
848
Dim pairs(significantMaps - 1) As KeyValuePair(Of
TypeParameterSymbol
, TypeWithModifiers)
852
pairs(pairIndex) = New KeyValuePair(Of
TypeParameterSymbol
, TypeWithModifiers)(typeParametersDefinitions(i), args(i))
Symbols\TypeSymbolExtensions.vb (17)
491
For Each constraint In DirectCast(this,
TypeParameterSymbol
).ConstraintTypesWithDefinitionUseSiteDiagnostics(useSiteInfo)
590
type As
TypeParameterSymbol
,
640
derivedType = DirectCast(derivedType,
TypeParameterSymbol
).GetNonInterfaceConstraint(useSiteInfo)
739
Friend Sub CollectReferencedTypeParameters(this As TypeSymbol, typeParameters As HashSet(Of
TypeParameterSymbol
))
743
Private ReadOnly s_addIfTypeParameterFunc As Func(Of TypeSymbol, HashSet(Of
TypeParameterSymbol
), Boolean) = AddressOf AddIfTypeParameter
745
Private Function AddIfTypeParameter(type As TypeSymbol, typeParameters As HashSet(Of
TypeParameterSymbol
)) As Boolean
747
typeParameters.Add(DirectCast(type,
TypeParameterSymbol
))
753
Friend Function ReferencesTypeParameterNotInTheSet(this As TypeSymbol, typeParameters As HashSet(Of
TypeParameterSymbol
)) As Boolean
758
Private ReadOnly s_isTypeParameterNotInSetFunc As Func(Of TypeSymbol, HashSet(Of
TypeParameterSymbol
), Boolean) = AddressOf IsTypeParameterNotInSet
760
Private Function IsTypeParameterNotInSet(type As TypeSymbol, typeParameters As HashSet(Of
TypeParameterSymbol
)) As Boolean
762
Not typeParameters.Contains(DirectCast(type,
TypeParameterSymbol
))
994
specializedTypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
1020
newTypeArguments(i) = specializedTypeParameters(DirectCast(typeArgument,
TypeParameterSymbol
).Ordinal)
1031
newTypeArguments(i) = specializedTypeParameters(DirectCast(typeArgument,
TypeParameterSymbol
).Ordinal)
1160
Public Function GetAllTypeParameters(type As NamedTypeSymbol) As ImmutableArray(Of
TypeParameterSymbol
)
1166
Dim builder = ArrayBuilder(Of
TypeParameterSymbol
).GetInstance()
1176
Public Sub GetAllTypeParameters(type As NamedTypeSymbol, builder As ArrayBuilder(Of
TypeParameterSymbol
))
Symbols\UnboundGenericType.vb (7)
109
Public MustOverride Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
431
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
434
Return ImmutableArray(Of
TypeParameterSymbol
).Empty
555
Private ReadOnly _typeParameters As ImmutableArray(Of
TypeParameterSymbol
)
565
Dim typeParametersDefinitions As ImmutableArray(Of
TypeParameterSymbol
) = originalDefinition.TypeParameters
575
_typeParameters = StaticCast(Of
TypeParameterSymbol
).From(newTypeParameters)
615
Public Overrides ReadOnly Property TypeParameters As ImmutableArray(Of
TypeParameterSymbol
)
Symbols\Wrapped\WrappedTypeParameterSymbol.vb (3)
20
Protected _underlyingTypeParameter As
TypeParameterSymbol
22
Public ReadOnly Property UnderlyingTypeParameter As
TypeParameterSymbol
94
Public Sub New(underlyingTypeParameter As
TypeParameterSymbol
)