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