40 instantiations of TypeWithModifiers
Microsoft.CodeAnalysis.VisualBasic (40)
Symbols\AnonymousTypes\PublicSymbols\AnonymousDelegate_TypePublicSymbol.vb (2)
144Return New TypeWithModifiers(Me) 147Return New TypeWithModifiers(Me.Manager.ConstructAnonymousDelegateSymbol(newDescriptor))
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_TypePublicSymbol.vb (2)
168Return New TypeWithModifiers(Me) 171Return New TypeWithModifiers(Me.Manager.ConstructAnonymousTypeSymbol(newDescriptor))
Symbols\ArrayTypeSymbol.vb (3)
516Dim oldElementType = New TypeWithModifiers(_elementType, _customModifiers) 536Return New TypeWithModifiers(newArray) 538Return New TypeWithModifiers(Me) ' substitution had no effect on the element type
Symbols\ErrorTypeSymbol.vb (1)
309Return New TypeWithModifiers(Me)
Symbols\InstanceErrorTypeSymbol.vb (1)
68Return New TypeWithModifiers(InternalSubstituteTypeParametersInInstanceErrorTypeSymbol(substitution))
Symbols\InstanceTypeSymbol.vb (1)
72Return New TypeWithModifiers(SubstituteTypeParametersInNamedType(substitution))
Symbols\Metadata\PE\SymbolFactory.vb (1)
128arguments.SelectAsArray(Function(pair) New TypeWithModifiers(pair.Key, VisualBasicCustomModifier.Convert(pair.Value))))
Symbols\Metadata\PE\TupleTypeDecoder.vb (2)
193decodedArgs.SelectAsArray(Function(t, i, m) New TypeWithModifiers(t, m.GetTypeArgumentCustomModifiers(i)), type), 194decodedArgs.SelectAsArray(Function(t) New TypeWithModifiers(t, Nothing)))
Symbols\MethodSignatureComparer.vb (7)
347New TypeWithModifiers(origDef1.ReturnType, origDef1.ReturnTypeCustomModifiers), 351New TypeWithModifiers(origDef2.ReturnType, origDef2.ReturnTypeCustomModifiers), 668Return SubstituteType(typeSubstitution, New TypeWithModifiers(param.OriginalDefinition.Type, param.OriginalDefinition.CustomModifiers)) 670Return New TypeWithModifiers(param.Type, param.CustomModifiers) 782Dim returnType1 = SubstituteType(typeSubstitution1, New TypeWithModifiers(origDef1.ReturnType, origDef1.ReturnTypeCustomModifiers)) 783Dim returnType2 = SubstituteType(typeSubstitution2, New TypeWithModifiers(origDef2.ReturnType, origDef2.ReturnTypeCustomModifiers)) 939result.Add(SubstituteType(substitution, New TypeWithModifiers(constraintType)).Type)
Symbols\PropertySignatureComparer.vb (2)
181New TypeWithModifiers(prop1.Type, prop1.TypeCustomModifiers), 185New TypeWithModifiers(prop2.Type, prop2.TypeCustomModifiers),
Symbols\Retargeting\RetargetingSymbolTranslator.vb (2)
433oldArguments.Add(New TypeWithModifiers(args(i), genericType.GetTypeArgumentCustomModifiers(i))) 437oldArguments.Add(New TypeWithModifiers(args(i)))
Symbols\SubstitutedErrorType.vb (1)
152Return New TypeWithModifiers(InternalSubstituteTypeParametersInSubstitutedErrorType(additionalSubstitution))
Symbols\SubstitutedNamedType.vb (3)
920Return New TypeWithModifiers(InternalSubstituteTypeParametersInSpecializedNonGenericType(additionalSubstitution)) 1057Return New TypeWithModifiers(InternalSubstituteTypeParametersInConstructedInstanceType(additionalSubstitution)) 1147Return New TypeWithModifiers(InternalSubstituteTypeParametersInConstructedSpecializedGenericType(additionalSubstitution))
Symbols\SubstitutedTypeParameterSymbol.vb (1)
209Return New TypeWithModifiers(Me)
Symbols\Tuples\TupleTypeSymbol.vb (3)
465typeArgumentsBuilder.Add(New TypeWithModifiers(typeArgumentsNoUseSiteDiagnostics(i), 469typeArgumentsBuilder.Add(New TypeWithModifiers(extensionTuple, 1076Return New TypeWithModifiers(tupleType, Nothing)
Symbols\TypeParameterSymbol.vb (1)
313Return New TypeWithModifiers(Me)
Symbols\TypeSubstitution.vb (5)
144Return New TypeWithModifiers(tp, ImmutableArray(Of CustomModifier).Empty) 151Return New TypeWithModifiers(tp, ImmutableArray(Of CustomModifier).Empty) 480Private Shared ReadOnly s_withoutModifiers As Func(Of TypeSymbol, TypeWithModifiers) = Function(arg) New TypeWithModifiers(arg) 611pairs(i) = New KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)(typeParametersDefinitions(i), New TypeWithModifiers(alphaRenamedTypeParameters(i))) 863Return New TypeWithModifiers(type, customModifiers).InternalSubstituteTypeParameters(Me).CustomModifiers
Symbols\TypeSymbolExtensions.vb (1)
1216builder.Add(New TypeWithModifiers(typeArguments(i), type.GetTypeArgumentCustomModifiers(i)))
Symbols\UnboundGenericType.vb (1)
546Return New TypeWithModifiers(Me)
84 references to TypeWithModifiers
Microsoft.CodeAnalysis.VisualBasic (84)
Symbols\AnonymousTypes\PublicSymbols\AnonymousDelegate_TypePublicSymbol.vb (1)
141Friend Overrides Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_TypePublicSymbol.vb (1)
165Friend Overrides Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (1)
249Friend MustOverride Overrides Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers
Symbols\ArrayTypeSymbol.vb (3)
317Friend MustOverride Overrides Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers 514Friend Overrides Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers 517Dim newElementType As TypeWithModifiers = oldElementType.InternalSubstituteTypeParameters(substitution)
Symbols\ErrorTypeSymbol.vb (1)
308Friend Overrides Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers
Symbols\InstanceErrorTypeSymbol.vb (1)
67Friend NotOverridable Overrides Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers
Symbols\InstanceTypeSymbol.vb (1)
71Friend Overrides Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers
Symbols\Metadata\PE\TupleTypeDecoder.vb (1)
223Private Shared Function Construct(type As NamedTypeSymbol, newTypeArgs As ImmutableArray(Of TypeWithModifiers)) As NamedTypeSymbol
Symbols\MethodSignatureComparer.vb (9)
441type1 As TypeWithModifiers, 445type2 As TypeWithModifiers, 571Dim type1 As TypeWithModifiers = GetTypeWithModifiers(typeSubstitution1, param1) 572Dim type2 As TypeWithModifiers = GetTypeWithModifiers(typeSubstitution2, param2) 666Private Shared Function GetTypeWithModifiers(typeSubstitution As TypeSubstitution, param As ParameterSymbol) As TypeWithModifiers 730Dim type1 As TypeWithModifiers = GetTypeWithModifiers(typeSubstitution1, param1) 731Dim type2 As TypeWithModifiers = GetTypeWithModifiers(typeSubstitution2, param2) 829Private Shared Function SubstituteType(typeSubstitution As TypeSubstitution, typeSymbol As TypeWithModifiers) As TypeWithModifiers
Symbols\Retargeting\RetargetingSymbolTranslator.vb (4)
416Dim oldArguments = ArrayBuilder(Of TypeWithModifiers).GetInstance() 448Dim newArguments = ArrayBuilder(Of TypeWithModifiers).GetInstance(oldArguments.Count) 507Private Function IsNoPiaIllegalGenericInstantiation(oldArguments As ArrayBuilder(Of TypeWithModifiers), newArguments As ArrayBuilder(Of TypeWithModifiers), startOfNonInterfaceArguments As Integer) As Boolean
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (1)
854Friend Overrides Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers
Symbols\SubstitutedErrorType.vb (1)
151Friend Overrides Function InternalSubstituteTypeParameters(additionalSubstitution As TypeSubstitution) As TypeWithModifiers
Symbols\SubstitutedNamedType.vb (4)
788Friend Overrides Function InternalSubstituteTypeParameters(additionalSubstitution As TypeSubstitution) As TypeWithModifiers 919Friend Overrides Function InternalSubstituteTypeParameters(additionalSubstitution As TypeSubstitution) As TypeWithModifiers 1056Friend Overrides Function InternalSubstituteTypeParameters(additionalSubstitution As TypeSubstitution) As TypeWithModifiers 1146Friend Overrides Function InternalSubstituteTypeParameters(additionalSubstitution As TypeSubstitution) As TypeWithModifiers
Symbols\SubstitutedTypeParameterSymbol.vb (1)
200Friend Overrides Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers
Symbols\Tuples\TupleTypeSymbol.vb (4)
445Dim typeArgumentsBuilder As ArrayBuilder(Of TypeWithModifiers) = ArrayBuilder(Of TypeWithModifiers).GetInstance(TupleTypeSymbol.RestPosition) 458Private Shared Function ReplaceRestExtensionType(tupleCompatibleType As NamedTypeSymbol, typeArgumentsBuilder As ArrayBuilder(Of TypeWithModifiers), extensionTuple As TupleTypeSymbol) As NamedTypeSymbol 1071Friend Overrides Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers
Symbols\TypeParameterSymbol.vb (1)
308Friend Overrides Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers
Symbols\TypeSubstitution.vb (30)
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 342Return Concat(sub1, targetGenericDefinition, ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)).Empty) 370args() As TypeWithModifiers, 398args As ImmutableArray(Of TypeWithModifiers), 413Dim pairs = ArrayBuilder(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)).GetInstance() 417Dim arg As TypeWithModifiers = args(i) 450pairs.Add(New KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)(param, arg)) 463currentParent = Concat(currentParent, targetGenericDefinition, ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)).Empty) 480Private Shared ReadOnly s_withoutModifiers As Func(Of TypeSymbol, TypeWithModifiers) = Function(arg) New TypeWithModifiers(arg) 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) 606Dim pairs(typeParametersDefinitions.Length - 1) As KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers) 611pairs(i) = New KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)(typeParametersDefinitions(i), New TypeWithModifiers(alphaRenamedTypeParameters(i))) 630typeArguments As ImmutableArray(Of TypeWithModifiers) 637Dim argument As TypeWithModifiers 666Dim pairs(countOfMeaningfulPairs - 1) As KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers) 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)), 768Dim newValue As TypeWithModifiers = oldPairs(i).Value.InternalSubstituteTypeParameters(additionalSubstitution) 780pairs.Add(New KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)(oldPairs(i).Key, newValue)) 806args As ImmutableArray(Of TypeWithModifiers), 848Dim pairs(significantMaps - 1) As KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers) 852pairs(pairIndex) = New KeyValuePair(Of TypeParameterSymbol, TypeWithModifiers)(typeParametersDefinitions(i), args(i))
Symbols\TypeSymbol.vb (2)
308Friend MustOverride Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers 311Friend Overloads Function Equals(other As TypeWithModifiers) As Boolean
Symbols\TypeSymbolExtensions.vb (2)
1209Public Function GetAllTypeArgumentsWithModifiers(type As NamedTypeSymbol) As ImmutableArray(Of TypeWithModifiers) 1210Dim builder = ArrayBuilder(Of TypeWithModifiers).GetInstance()
Symbols\TypeWithModifiers.vb (12)
10Implements IEquatable(Of TypeWithModifiers) 29Return TypeOf obj Is TypeWithModifiers AndAlso Equals(DirectCast(obj, TypeWithModifiers)) 32Public Overloads Function Equals(other As TypeWithModifiers) As Boolean Implements IEquatable(Of TypeWithModifiers).Equals 36Friend Function IsSameType(other As TypeWithModifiers, compareKind As TypeCompareKind) As Boolean 50Shared Operator =(x As TypeWithModifiers, y As TypeWithModifiers) As Boolean 54Shared Operator <>(x As TypeWithModifiers, y As TypeWithModifiers) As Boolean 81Public Function InternalSubstituteTypeParameters(substitution As TypeSubstitution) As TypeWithModifiers 83Dim newTypeWithModifiers As TypeWithModifiers = Me.Type.InternalSubstituteTypeParameters(substitution)
Symbols\UnboundGenericType.vb (3)
253Friend MustOverride Overrides Function InternalSubstituteTypeParameters(additionalSubstitution As TypeSubstitution) As TypeWithModifiers 544Friend Overrides Function InternalSubstituteTypeParameters(additionalSubstitution As TypeSubstitution) As TypeWithModifiers 659Friend Overrides Function InternalSubstituteTypeParameters(additionalSubstitution As TypeSubstitution) As TypeWithModifiers