3 types derived from TypeSymbol
Microsoft.CodeAnalysis.VisualBasic (3)
Symbols\ArrayTypeSymbol.vb (1)
20Inherits TypeSymbol
Symbols\NamedTypeSymbol.vb (1)
24Inherits TypeSymbol
Symbols\TypeParameterSymbol.vb (1)
21Inherits TypeSymbol
1038 references to TypeSymbol
Microsoft.CodeAnalysis.VisualBasic (1038)
Binding\SyntheticBoundTrees\AnonymousTypeSyntheticMethods.vb (14)
36Dim propertyType As TypeSymbol = [property].Type 92Dim objectType As TypeSymbol = Me.AnonymousType.Manager.System_Object 94Dim integerType As TypeSymbol = Me.AnonymousType.Manager.System_Int32 95Dim booleanType As TypeSymbol = Me.AnonymousType.Manager.System_Boolean 191Dim objectType As TypeSymbol = Me.AnonymousType.Manager.System_Object 192Dim booleanType As TypeSymbol = Me.AnonymousType.Manager.System_Boolean 230localMyFieldBoxed As LocalSymbol, localOtherFieldBoxed As LocalSymbol, booleanType As TypeSymbol) As BoundExpression 259booleanType As TypeSymbol) As BoundExpression 308Private Function BuildIsCheck(left As BoundExpression, right As BoundExpression, booleanType As TypeSymbol, Optional reverse As Boolean = False) As BoundExpression 314Private Function BuildAndAlso(left As BoundExpression, right As BoundExpression, booleanType As TypeSymbol) As BoundExpression 319Private Function BuildOrElse(left As BoundExpression, right As BoundExpression, booleanType As TypeSymbol) As BoundExpression 333Dim objectType As TypeSymbol = Me.AnonymousType.Manager.System_Object 334Dim stringType As TypeSymbol = Me.ReturnType 336Dim arrayOfObjectsType As TypeSymbol = Me.AnonymousType.Manager.Compilation.CreateArrayTypeSymbol(objectType)
Declarations\DeclarationTreeBuilder.vb (1)
120name:=TypeSymbol.ImplicitTypeName,
Emit\AttributeDataAdapter.vb (4)
109Return New MetadataTypeOf(moduleBeingBuilt.Translate(DirectCast(argument.ValueInternal, TypeSymbol), syntaxNodeOpt, diagnostics), 110moduleBeingBuilt.Translate(DirectCast(argument.TypeInternal, TypeSymbol), syntaxNodeOpt, diagnostics)) 115Return moduleBeingBuilt.CreateConstant(DirectCast(type, TypeSymbol), value, syntaxNodeOpt:=DirectCast(context.SyntaxNode, VisualBasicSyntaxNode), diagnostics:=context.Diagnostics) 121Dim type As TypeSymbol
Emit\MethodSymbolAdapter.vb (1)
201Dim returnType As TypeSymbol = AdaptedMethodSymbol.ReturnType
Emit\ParameterSymbolAdapter.vb (1)
47Dim paramType As TypeSymbol = AdaptedParameterSymbol.Type
Emit\SynthesizedPrivateImplementationDetailsSharedConstructor.vb (2)
18Private ReadOnly _voidType As TypeSymbol 44Public Overrides ReadOnly Property ReturnType As TypeSymbol
Emit\TypeParameterSymbolAdapter.vb (1)
309Friend Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
Symbols\AnonymousTypes\AnonymousTypeDescriptor.vb (4)
160Public ReadOnly Property Type As TypeSymbol 171Private _type As TypeSymbol 185Public Sub New(name As String, type As TypeSymbol, location As Location, Optional isKeyOrByRef As Boolean = False) 204Friend Sub AssignFieldType(newType As TypeSymbol)
Symbols\AnonymousTypes\AnonymousTypeManager_Templates.vb (2)
145Dim typeArguments() As TypeSymbol = New TypeSymbol(template.Arity - 1) {}
Symbols\AnonymousTypes\PublicSymbols\AnonymousDelegate_TypePublicSymbol.vb (2)
32Dim returnType As TypeSymbol = If(parameterDescriptors.IsSubDescription(), DirectCast(manager.System_Void, TypeSymbol), parameterDescriptors.Last.Type)
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_PropertyPublicAccessors.vb (4)
14Private ReadOnly _returnType As TypeSymbol 16Public Sub New([property] As PropertySymbol, returnType As TypeSymbol) 27Public Overrides ReadOnly Property ReturnType As TypeSymbol 70Public Sub New([property] As PropertySymbol, voidTypeSymbol As TypeSymbol)
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_PropertyPublicSymbol.vb (1)
53Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_TypePublicSymbol.vb (1)
74Dim equatableInterface As NamedTypeSymbol = Me.Manager.System_IEquatable_T.Construct(ImmutableArray.Create(Of TypeSymbol)(Me))
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (2)
212Friend Overrides ReadOnly Property CoClassType As TypeSymbol 316Public NotOverridable Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousDelegate_TemplateSymbol.vb (3)
39Dim returnType As TypeSymbol = If(parameterDescriptors.IsSubDescription(), DirectCast(manager.System_Void, TypeSymbol), Me.TypeParameters.Last) 220Public Overrides Function Equals(obj As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_EqualsMethodSymbol.vb (1)
80Public Overrides ReadOnly Property ReturnType As TypeSymbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_GetHashCodeMethodSymbol.vb (1)
49Public Overrides ReadOnly Property ReturnType As TypeSymbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_IEquatable_EqualsMethodSymbol.vb (1)
86Public Overrides ReadOnly Property ReturnType As TypeSymbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_PropertyAccessors.vb (4)
18Private ReadOnly _returnType As TypeSymbol 20Public Sub New([property] As PropertySymbol, returnType As TypeSymbol) 35Public Overrides ReadOnly Property ReturnType As TypeSymbol 89Public Sub New([property] As PropertySymbol, voidTypeSymbol As TypeSymbol)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_PropertyBackingFieldSymbol.vb (1)
33Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_PropertySymbol.vb (3)
16Private ReadOnly _type As TypeSymbol 26Public Sub New(container As AnonymousTypeTemplateSymbol, field As AnonymousTypeField, index As Integer, typeSymbol As TypeSymbol) 95Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_TemplateSymbol.vb (1)
77Dim equatableInterface As NamedTypeSymbol = Me.Manager.System_IEquatable_T.Construct(ImmutableArray.Create(Of TypeSymbol)(Me))
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_ToStringMethodSymbol.vb (1)
53Public Overrides ReadOnly Property ReturnType As TypeSymbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegate_ParameterSymbol.vb (1)
23type As TypeSymbol, ordinal As Integer,
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTemplateSymbol.vb (1)
188Friend Overrides ReadOnly Property CoClassType As TypeSymbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTypeParameterSymbol.vb (3)
39Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 41Return ImmutableArray(Of TypeSymbol).Empty 127Public Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\ArrayTypeSymbol.vb (21)
26Friend Shared Function CreateVBArray(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), rank As Integer, compilation As VisualBasicCompilation) As ArrayTypeSymbol 33Friend Shared Function CreateVBArray(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), rank As Integer, declaringAssembly As AssemblySymbol) As ArrayTypeSymbol 42elementType As TypeSymbol, 67Friend Shared Function CreateSZArray(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), compilation As VisualBasicCompilation) As ArrayTypeSymbol 71Friend Shared Function CreateSZArray(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), declaringAssembly As AssemblySymbol) As ArrayTypeSymbol 78Private Shared Function GetSZArrayInterfaces(elementType As TypeSymbol, declaringAssembly As AssemblySymbol) As ImmutableArray(Of NamedTypeSymbol) 167Public MustOverride ReadOnly Property ElementType As TypeSymbol 319Public NotOverridable Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean 355Dim current As TypeSymbol = Me 365Friend MustOverride Function WithElementType(elementType As TypeSymbol) As ArrayTypeSymbol 388Friend Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo 477Private ReadOnly _elementType As TypeSymbol 481Public Sub New(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), systemArray As NamedTypeSymbol) 496Public NotOverridable Overrides ReadOnly Property ElementType As TypeSymbol 551Public Sub New(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), systemArray As NamedTypeSymbol, interfaces As ImmutableArray(Of NamedTypeSymbol)) 582Friend Overrides Function WithElementType(newElementType As TypeSymbol) As ArrayTypeSymbol 600Public Sub New(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), rank As Integer, systemArray As NamedTypeSymbol) 630Public Sub New(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), rank As Integer, systemArray As NamedTypeSymbol) 634Friend Overrides Function WithElementType(newElementType As TypeSymbol) As ArrayTypeSymbol 653elementType As TypeSymbol, 686Friend Overrides Function WithElementType(newElementType As TypeSymbol) As ArrayTypeSymbol
Symbols\AssemblySymbol.vb (1)
661TypeSymbol.Equals(candidate, result, TypeCompareKind.ConsiderEverything) Then
Symbols\Attributes\AttributeData.vb (1)
234Dim firstArgType = DirectCast(firstArg.TypeInternal, TypeSymbol)
Symbols\Attributes\PEAttributeData.vb (1)
149Dim attributeClass As TypeSymbol = Nothing
Symbols\Attributes\SourceAttributeData.vb (3)
132Dim lazySystemType As TypeSymbol = Nothing 165Dim parameterType As TypeSymbol = parameters(k).Type 257foundMatch = TypeSymbol.Equals(parameterType, lazySystemType, TypeCompareKind.ConsiderEverything)
Symbols\BaseTypeAnalysis.vb (10)
25Public ReadOnly dependent As TypeSymbol 27Friend Sub New(kind As DependencyKind, dependent As TypeSymbol) 49Dim current As ConsList(Of TypeSymbol) = basesBeingResolved.InheritsBeingResolvedOpt 92base As TypeSymbol) As DiagnosticInfo 192current As TypeSymbol) As ConsList(Of DependencyDesc) 193Debug.Assert(TypeSymbol.Equals(root.OriginalDefinition, root, TypeCompareKind.ConsiderEverything), "root must not be a substitution") 315Dim derived As New HashSet(Of TypeSymbol) 320Dim verified As New HashSet(Of TypeSymbol) 333Private Function HasCycles(derived As HashSet(Of TypeSymbol), verified As HashSet(Of TypeSymbol), [interface] As NamedTypeSymbol) As Boolean
Symbols\ConstantValueUtils.vb (3)
13Public Sub New(value As ConstantValue, type As TypeSymbol) 21Public ReadOnly Type As TypeSymbol 40Dim boundValueType As TypeSymbol
Symbols\ConstraintsHelper.vb (19)
385type As TypeSymbol, 412type As TypeSymbol, 435Private ReadOnly s_checkConstraintsSingleTypeFunc As Func(Of TypeSymbol, CheckConstraintsDiagnosticsBuilders, Boolean) = AddressOf CheckConstraintsSingleType 437Private Function CheckConstraintsSingleType(type As TypeSymbol, diagnostics As CheckConstraintsDiagnosticsBuilders) As Boolean 618typeArguments As ImmutableArray(Of TypeSymbol), 648typeArgument As TypeSymbol, 762Public Function GetNonInterfaceConstraint(typeParameter As TypeParameterSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As TypeSymbol 763Dim result As TypeSymbol = Nothing 767Dim candidate As TypeSymbol = Nothing 797Dim result As TypeSymbol = Nothing 919typeArgument As TypeSymbol, 920constraintType As TypeSymbol, 934typeArgument As TypeSymbol, 992typeArgument As TypeSymbol, 1012typeArgument As TypeSymbol, 1019Dim containingType = TryCast(constructedSymbol, TypeSymbol) 1121Private Function IsNullableTypeOrTypeParameter(type As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean 1207Private Function ContainsTypeConstraint(constraints As ArrayBuilder(Of TypeParameterConstraint), constraintType As TypeSymbol) As Boolean 1232Debug.Assert(Not TypeSymbol.Equals(type.ConstructedFrom, type, TypeCompareKind.ConsiderEverything))
Symbols\CustomModifier.vb (2)
50Friend Shared Function Convert(customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol))) As ImmutableArray(Of CustomModifier) 57Private Shared Function Convert(customModifier As ModifierInfo(Of TypeSymbol)) As CustomModifier
Symbols\ErrorMethodSymbol.vb (7)
14Private ReadOnly _containingType As TypeSymbol 15Private ReadOnly _returnType As TypeSymbol 18Public Sub New(containingType As TypeSymbol, returnType As TypeSymbol, name As String) 210Public Overrides ReadOnly Property ReturnType As TypeSymbol 240Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 242Return ImmutableArray(Of TypeSymbol).Empty
Symbols\ErrorTypeSymbol.vb (6)
40Friend Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo 182Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 184Return ImmutableArray(Of TypeSymbol).Empty 278Friend Overrides ReadOnly Property CoClassType As TypeSymbol 324Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 390Public Overrides Function Equals(obj As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\EventSymbol.vb (3)
54Public MustOverride ReadOnly Property Type As TypeSymbol 154Friend ReadOnly Property DelegateReturnType As TypeSymbol 356Return TypeSymbol.Equals(Me.ContainingType, other.ContainingType, TypeCompareKind.ConsiderEverything) AndAlso Me.OriginalDefinition Is other.OriginalDefinition
Symbols\ExtensionMethods.vb (1)
30For Each constraintType As TypeSymbol In typeParameter.ConstraintTypesNoUseSiteDiagnostics
Symbols\FieldSymbol.vb (4)
53Public MustOverride ReadOnly Property Type As TypeSymbol 173Friend Overridable Function GetInferredType(inProgress As ConstantFieldsInProgress) As TypeSymbol 301Dim unificationCheckedTypes As HashSet(Of TypeSymbol) = Nothing 397Return If(TypeSymbol.Equals(newOwner, Me.ContainingType, TypeCompareKind.ConsiderEverything),
Symbols\IndexedTypeParameterSymbol.vb (3)
99Public Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean 137Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 139Return ImmutableArray(Of TypeSymbol).Empty
Symbols\InstanceErrorTypeSymbol.vb (7)
43Public NotOverridable Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 122Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 124Return StaticCast(Of TypeSymbol).From(Me.TypeParameters) 142Public NotOverridable Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean 202Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 204Return ImmutableArray(Of TypeSymbol).Empty 276Public Overrides Function Equals(obj As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\InstanceTypeSymbol.vb (6)
22Friend NotOverridable Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 26Return StaticCast(Of TypeSymbol).From(Me.TypeParameters) 28Return ImmutableArray(Of TypeSymbol).Empty 52Public NotOverridable Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 135Public Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean 197Friend NotOverridable Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
Symbols\Metadata\PE\MemberRefMetadataDecoder.vb (22)
26Private ReadOnly _containingType As TypeSymbol 28Public Sub New(moduleSymbol As PEModuleSymbol, containingType As TypeSymbol) 41Protected Overrides Function GetGenericMethodTypeParamSymbol(position As Integer) As TypeSymbol 48Protected Overrides Function GetGenericTypeParamSymbol(position As Integer) As TypeSymbol 124Dim targetParamInfo As ParamInfo(Of TypeSymbol)() = Me.DecodeSignatureParametersOrThrow(signaturePointer, signatureHeader, typeParamCount) 133Dim fieldInfo As FieldInfo(Of TypeSymbol) = Me.DecodeFieldSignature(signaturePointer) 145Private Shared Function FindFieldBySignature(targetTypeSymbol As TypeSymbol, targetMemberName As String, fieldInfo As FieldInfo(Of TypeSymbol)) As FieldSymbol 147Dim type As TypeSymbol = Nothing 148Dim customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)) = Nothing 154TypeSymbol.Equals(field.Type, type, TypeCompareKind.AllIgnoreOptionsForVB) AndAlso 166Private Shared Function FindMethodBySignature(targetTypeSymbol As TypeSymbol, targetMemberName As String, targetMemberSignatureHeader As SignatureHeader, targetMemberTypeParamCount As Integer, targetParamInfo As ParamInfo(Of TypeSymbol)()) As MethodSymbol 184Private Shared Function MethodSymbolMatchesParamInfo(candidateMethod As MethodSymbol, targetParamInfo As ParamInfo(Of TypeSymbol)()) As Boolean 194candidateMethod = candidateMethod.Construct(StaticCast(Of TypeSymbol).From(IndexedTypeParameterSymbol.Take(candidateMethod.Arity))) 210Private Shared Function ParametersMatch(candidateParam As ParameterSymbol, ByRef targetParam As ParamInfo(Of TypeSymbol)) As Boolean 219If Not TypeSymbol.Equals(candidateParam.Type, targetParam.Type, TypeCompareKind.AllIgnoreOptionsForVB) Then 231Private Shared Function ReturnTypesMatch(candidateMethod As MethodSymbol, ByRef targetReturnParam As ParamInfo(Of TypeSymbol)) As Boolean 232Dim candidateReturnType As TypeSymbol = candidateMethod.ReturnType 233Dim targetReturnType As TypeSymbol = targetReturnParam.Type 236If Not TypeSymbol.Equals(candidateReturnType, targetReturnType, TypeCompareKind.AllIgnoreOptionsForVB) OrElse candidateMethod.ReturnsByRef <> targetReturnParam.IsByRef Then 248Private Shared Function CustomModifiersMatch(candidateReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier), targetReturnTypeCustomModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol))) As Boolean
Symbols\Metadata\PE\MetadataDecoder.vb (26)
19Inherits MetadataDecoder(Of PEModuleSymbol, TypeSymbol, MethodSymbol, FieldSymbol, Symbol) 72Protected Overrides Function GetGenericMethodTypeParamSymbol(position As Integer) As TypeSymbol 87Protected Overrides Function GetGenericTypeParamSymbol(position As Integer) As TypeSymbol 105Protected Overrides Function GetTypeHandleToTypeMap() As ConcurrentDictionary(Of TypeDefinitionHandle, TypeSymbol) 109Protected Overrides Function GetTypeRefHandleToTypeMap() As ConcurrentDictionary(Of TypeReferenceHandle, TypeSymbol) 114container As TypeSymbol, 116) As TypeSymbol 129) As TypeSymbol 145Protected Overrides Function LookupTopLevelTypeDefSymbol(moduleName As String, ByRef emittedName As MetadataTypeName, <Out> ByRef isNoPiaLocalType As Boolean) As TypeSymbol 171Protected Overloads Overrides Function LookupTopLevelTypeDefSymbol(ByRef emittedName As MetadataTypeName, <Out> ByRef isNoPiaLocalType As Boolean) As TypeSymbol 192Public Shared Function IsOrClosedOverATypeFromAssemblies(this As TypeSymbol, assemblies As ImmutableArray(Of AssemblySymbol)) As Boolean 242) As TypeSymbol 244Dim result As TypeSymbol 248Dim baseType As TypeSymbol = Nothing 273Dim cache As ConcurrentDictionary(Of TypeDefinitionHandle, TypeSymbol) = GetTypeHandleToTypeMap() 276Dim newresult As TypeSymbol = cache.GetOrAdd(typeDef, result) 290baseType As TypeSymbol, 421Protected Overrides Function FindMethodSymbolInType(typeSymbol As TypeSymbol, targetMethodDef As MethodDefinitionHandle) As MethodSymbol 446Protected Overrides Function FindFieldSymbolInType(typeSymbol As TypeSymbol, fieldDef As FieldDefinitionHandle) As FieldSymbol 459Friend Overrides Function GetSymbolForMemberRef(memberRef As MemberReferenceHandle, Optional scope As TypeSymbol = Nothing, Optional methodsOnly As Boolean = False) As Symbol 460Dim targetTypeSymbol As TypeSymbol = GetMemberRefTypeSymbol(memberRef) 468If scope IsNot Nothing AndAlso Not TypeSymbol.Equals(targetTypeSymbol, scope, TypeCompareKind.ConsiderEverything) AndAlso Not targetTypeSymbol.IsBaseTypeOrInterfaceOf(scope, CompoundUseSiteInfo(Of AssemblySymbol).Discarded) Then 489Protected Overrides Sub EnqueueTypeSymbolInterfacesAndBaseTypes(typeDefsToSearch As Queue(Of TypeDefinitionHandle), typeSymbolsToSearch As Queue(Of TypeSymbol), typeSymbol As TypeSymbol) 497Protected Overrides Sub EnqueueTypeSymbol(typeDefsToSearch As Queue(Of TypeDefinitionHandle), typeSymbolsToSearch As Queue(Of TypeSymbol), typeSymbol As TypeSymbol)
Symbols\Metadata\PE\PEEventSymbol.vb (4)
31Private ReadOnly _eventType As TypeSymbol 110TypeSymbol.Equals(_addMethod.ReturnType, evt, TypeCompareKind.ConsiderEverything) AndAlso 113TypeSymbol.Equals(_removeMethod.Parameters(0).Type, evt, TypeCompareKind.ConsiderEverything) 211Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Metadata\PE\PEFieldSymbol.vb (9)
40Private _lazyType As TypeSymbol 372Dim fieldInfo As FieldInfo(Of TypeSymbol) = New MetadataDecoder(moduleSymbol, _containingType).DecodeFieldSignature(_handle) 374Dim type As TypeSymbol = Nothing 375Dim customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)) = Nothing 385Friend Shared Sub GetSignatureParts(fieldInfo As FieldInfo(Of TypeSymbol), ByRef type As TypeSymbol, ByRef customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol))) 390Dim refCustomModifiers = fieldInfo.RefCustomModifiers.NullToEmpty.Add(New ModifierInfo(Of TypeSymbol)(isOptional:=False, _byRefPlaceholder)) 397Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Metadata\PE\PEMethodSymbol.vb (7)
527Dim outputType As TypeSymbol = ReturnType 942Public Overrides ReadOnly Property ReturnType As TypeSymbol 990Debug.Assert(TypeSymbol.Equals(propertyOrEventSymbol.ContainingType, Me.ContainingType, TypeCompareKind.ConsiderEverything)) 1005Dim paramInfo() As ParamInfo(Of TypeSymbol) = 1069Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 1072Return StaticCast(Of TypeSymbol).From(Me.TypeParameters) 1074Return ImmutableArray(Of TypeSymbol).Empty
Symbols\Metadata\PE\PEModuleSymbol.vb (4)
55''' This is a map from TypeDef handle to the target <see cref="TypeSymbol"/>. 60Friend ReadOnly TypeHandleToTypeMap As New ConcurrentDictionary(Of TypeDefinitionHandle, TypeSymbol)(concurrencyLevel:=2, capacity:=s_defaultTypeMapCapacity) 63''' This is a map from TypeRef row id to the target <see cref="TypeSymbol"/>. 68Friend ReadOnly TypeRefHandleToTypeMap As New ConcurrentDictionary(Of TypeReferenceHandle, TypeSymbol)(concurrencyLevel:=2, capacity:=s_defaultTypeMapCapacity)
Symbols\Metadata\PE\PENamedTypeSymbol.vb (9)
66Private _lazyCoClassType As TypeSymbol = ErrorTypeSymbol.UnknownResultType 284Dim typeSymbol As TypeSymbol = tokenDecoder.GetTypeOfToken(interfaceHandle) 1005Dim base As TypeSymbol = GetDeclaredBase(Nothing) 1057Friend Overrides ReadOnly Property CoClassType As TypeSymbol 1062DirectCast(ErrorTypeSymbol.UnknownResultType, TypeSymbol)) 1069Private Function MakeComImportCoClassType() As TypeSymbol 1317Dim base As TypeSymbol = GetDeclaredBase(Nothing) 1412IndexedTypeParameterSymbol.Take(n).As(Of TypeSymbol)) 1416IndexedTypeParameterSymbol.Take(nestedTypeParameters.Length).As(Of TypeSymbol))
Symbols\Metadata\PE\PEParameterSymbol.vb (13)
26Private ReadOnly _type As TypeSymbol 71ByRef parameter As ParamInfo(Of TypeSymbol), 82type As TypeSymbol, 103type As TypeSymbol, 138refCustomModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)), 139type As TypeSymbol, 141customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)), 157type As TypeSymbol, 215type As TypeSymbol, 237refCustomModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)), 238type As TypeSymbol, 240customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)), 466Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Metadata\PE\PEPropertySymbol.vb (11)
29Private ReadOnly _propertyType As TypeSymbol 66Dim returnInfo As ParamInfo(Of TypeSymbol) = propertyParams(0) 91propertyParams As ParamInfo(Of TypeSymbol)() 134Dim returnInfo As ParamInfo(Of TypeSymbol) = propertyParams(0) 273Public Overrides ReadOnly Property Type As TypeSymbol 383propertyParams As ParamInfo(Of TypeSymbol)(), 385getMethodParamsOpt As ParamInfo(Of TypeSymbol)(), 387setMethodParamsOpt As ParamInfo(Of TypeSymbol)()) As Boolean 441propertyParams As ParamInfo(Of TypeSymbol)(), 639propertyParams As ParamInfo(Of TypeSymbol)() 643Dim returnInfo As ParamInfo(Of TypeSymbol) = propertyParams(0)
Symbols\Metadata\PE\PETypeParameterSymbol.vb (6)
36Private _lazyConstraintTypes As ImmutableArray(Of TypeSymbol) 151Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 212Dim typeSymbol As TypeSymbol = GetConstraintType(metadataReader, tokenDecoder, constraintHandle, hasUnmanagedModreqPattern) 245) As TypeSymbol 248Dim modifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)) = Nothing 256Dim m As ModifierInfo(Of TypeSymbol) = modifiers.Single()
Symbols\Metadata\PE\SymbolFactory.vb (25)
11Inherits SymbolFactory(Of PEModuleSymbol, TypeSymbol) 18elementType As TypeSymbol, 19customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)), 22) As TypeSymbol 33Friend Overrides Function GetSpecialType(moduleSymbol As PEModuleSymbol, specialType As SpecialType) As TypeSymbol 37Friend Overrides Function GetSystemTypeSymbol(moduleSymbol As PEModuleSymbol) As TypeSymbol 41Friend Overrides Function GetEnumUnderlyingType(moduleSymbol As PEModuleSymbol, type As TypeSymbol) As TypeSymbol 45Friend Overrides Function GetPrimitiveTypeCode(moduleSymbol As PEModuleSymbol, type As TypeSymbol) As Microsoft.Cci.PrimitiveTypeCode 49Friend Overrides Function GetSZArrayTypeSymbol(moduleSymbol As PEModuleSymbol, elementType As TypeSymbol, customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol))) As TypeSymbol 60Friend Overrides Function GetUnsupportedMetadataTypeSymbol(moduleSymbol As PEModuleSymbol, exception As BadImageFormatException) As TypeSymbol 64Friend Overrides Function MakePointerTypeSymbol(moduleSymbol As PEModuleSymbol, type As TypeSymbol, customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol))) As TypeSymbol 70genericTypeDef As TypeSymbol, 71arguments As ImmutableArray(Of KeyValuePair(Of TypeSymbol, ImmutableArray(Of ModifierInfo(Of TypeSymbol)))), 73) As TypeSymbol 140Return DirectCast(constructedType, TypeSymbol) 143Friend Overrides Function MakeUnboundIfGeneric(moduleSymbol As PEModuleSymbol, type As TypeSymbol) As TypeSymbol 148Friend Overrides Function MakeFunctionPointerTypeSymbol(moduleSymbol As PEModuleSymbol, callingConvention As Cci.CallingConvention, retAndParamTypes As ImmutableArray(Of ParamInfo(Of TypeSymbol))) As TypeSymbol
Symbols\Metadata\PE\TupleTypeDecoder.vb (12)
22''' <see cref="DecodeTupleTypesIfApplicable(TypeSymbol, EntityHandle, PEModuleSymbol)"/> 76metadataType As TypeSymbol, 78containingModule As PEModuleSymbol) As TypeSymbol 93metadataType As TypeSymbol, 94elementNames As ImmutableArray(Of String)) As TypeSymbol 99Private Shared Function DecodeTupleTypesInternal(metadataType As TypeSymbol, 101hasTupleElementNamesAttribute As Boolean) As TypeSymbol 125Private Function DecodeType(type As TypeSymbol) As TypeSymbol 237Private Function DecodeTypeArguments(typeArgs As ImmutableArray(Of TypeSymbol)) As ImmutableArray(Of TypeSymbol) 242Dim decodedArgs = ArrayBuilder(Of TypeSymbol).GetInstance(typeArgs.Length)
Symbols\MethodSignatureComparer.vb (9)
809Dim indexedTypeArguments = StaticCast(Of TypeSymbol).From(IndexedTypeParameterSymbol.Take(method.Arity)) 884Dim substitutedTypes1 = ArrayBuilder(Of TypeSymbol).GetInstance() 885Dim substitutedTypes2 = ArrayBuilder(Of TypeSymbol).GetInstance() 913Private Shared Function AreConstraintTypesSubset(constraintTypes1 As ArrayBuilder(Of TypeSymbol), constraintTypes2 As ArrayBuilder(Of TypeSymbol)) As Boolean 928Private Shared Function ContainsIgnoringCustomModifiers(types As ArrayBuilder(Of TypeSymbol), type As TypeSymbol) As Boolean 937Private Shared Sub SubstituteConstraintTypes(constraintTypes As ImmutableArray(Of TypeSymbol), result As ArrayBuilder(Of TypeSymbol), substitution As TypeSubstitution)
Symbols\MethodSymbol.vb (15)
75Public MustOverride ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 153Public MustOverride ReadOnly Property ReturnType As TypeSymbol 539Dim returnType As TypeSymbol = Me.ReturnType 581Protected Sub CheckCanConstructAndTypeArguments(typeArguments As ImmutableArray(Of TypeSymbol)) 592Public Overridable Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol 607Public Function Construct(ParamArray typeArguments() As TypeSymbol) As MethodSymbol 683Dim unificationCheckedTypes As HashSet(Of TypeSymbol) = Nothing 753Public Overridable ReadOnly Property ReceiverType As TypeSymbol 767Public Overridable Function GetTypeInferredDuringReduction(reducedFromTypeParameter As TypeParameterSymbol) As TypeSymbol 774Friend Overridable ReadOnly Property FixedTypeParameters As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol)) 776Return ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol)).Empty 787Friend Function ReduceExtensionMethod(instanceType As TypeSymbol, proximity As Integer, ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol), languageVersion As LanguageVersion) As MethodSymbol 795Public Function ReduceExtensionMethod(instanceType As TypeSymbol, ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol), languageVersion As LanguageVersion) As MethodSymbol 968Return Me.ReduceExtensionMethod(receiverType.EnsureVbSymbolOrNothing(Of TypeSymbol)(NameOf(receiverType)), CompoundUseSiteInfo(Of AssemblySymbol).Discarded, LanguageVersion.Latest) 1143Return Construct(DirectCast(typeArguments, TypeSymbol()))
Symbols\MethodSymbolExtensions.vb (1)
97Friend Function ConstructIfGeneric(method As MethodSymbol, typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol
Symbols\MissingModuleSymbol.vb (1)
143Friend Overrides Function GetUnificationUseSiteErrorInfo(dependentType As TypeSymbol) As DiagnosticInfo
Symbols\ModuleSymbol.vb (1)
213Friend MustOverride Function GetUnificationUseSiteErrorInfo(dependentType As TypeSymbol) As DiagnosticInfo
Symbols\NamedTypeSymbol.vb (15)
76Friend MustOverride ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 78Friend Function TypeArgumentsWithDefinitionUseSiteDiagnostics(<[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of TypeSymbol) 88Friend Function TypeArgumentWithDefinitionUseSiteDiagnostics(index As Integer, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As TypeSymbol 470Public Function Construct(ParamArray typeArguments() As TypeSymbol) As NamedTypeSymbol 477Public Function Construct(typeArguments As IEnumerable(Of TypeSymbol)) As NamedTypeSymbol 489Public MustOverride Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 492Protected Sub CheckCanConstructAndTypeArguments(typeArguments As ImmutableArray(Of TypeSymbol)) 677Friend MustOverride ReadOnly Property CoClassType As TypeSymbol 964Protected NotOverridable Overrides ReadOnly Property OriginalTypeSymbolDefinition As TypeSymbol 1021For Each arg As TypeSymbol In currentType.TypeArgumentsNoUseSiteDiagnostics 1086''' Requires less computation than <see cref="TypeSymbol.TypeKind"/>== <see cref="TypeKind.Interface"/>. 1265Dim fieldType As TypeSymbol = field.Type.GetTupleUnderlyingTypeOrSelf() 1535Dim typeToCheck As TypeSymbol = Me 1541Loop While TypeSymbol.Equals(typeToCheck.OriginalDefinition, Me.OriginalDefinition, TypeCompareKind.ConsiderEverything) AndAlso Not typeToCheck.IsDefinition 1545If underlying.Arity = TupleTypeSymbol.RestPosition AndAlso Not TypeSymbol.Equals(underlying.OriginalDefinition, Me.OriginalDefinition, TypeCompareKind.ConsiderEverything) Then
Symbols\NonMissingModuleSymbol.vb (1)
77Friend Overrides Function GetUnificationUseSiteErrorInfo(dependentType As TypeSymbol) As DiagnosticInfo
Symbols\NoPiaAmbiguousCanonicalTypeSymbol.vb (1)
63Public Overrides Function Equals(obj As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\NoPiaIllegalGenericInstantiationSymbol.vb (1)
42Public Overrides Function Equals(obj As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\NoPiaMissingCanonicalTypeSymbol.vb (1)
88Public Overrides Function Equals(obj As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\OverriddenMembersResult.vb (2)
94If TypeSymbol.Equals(baseType.OriginalDefinition, overriddenByDefinitionContainingTypeDefinition, TypeCompareKind.ConsiderEverything) Then 95If TypeSymbol.Equals(baseType, overriddenByDefinitionContaining, TypeCompareKind.ConsiderEverything) Then
Symbols\ParameterSymbol.vb (1)
107Public MustOverride ReadOnly Property Type As TypeSymbol
Symbols\PointerTypeSymbol.vb (4)
17Private ReadOnly _pointedAtType As TypeSymbol 20Public Sub New(pointedAtType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier)) 45Dim last As TypeSymbol 56Public Overrides Function Equals(obj As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\PropertySymbol.vb (4)
54Public MustOverride ReadOnly Property Type As TypeSymbol 212TypeSymbol.Equals(sourceProperty.ContainingType, fromMember.ContainingType, TypeCompareKind.ConsiderEverything) AndAlso 385Friend Overridable ReadOnly Property ReceiverType As TypeSymbol 435Dim unificationCheckedTypes As HashSet(Of TypeSymbol) = Nothing
Symbols\PropertySymbolExtensions.vb (2)
45Public Function GetTypeFromGetMethod([property] As PropertySymbol) As TypeSymbol 51Public Function GetTypeFromSetMethod([property] As PropertySymbol) As TypeSymbol
Symbols\ReducedExtensionMethodSymbol.vb (32)
22Private ReadOnly _receiverType As TypeSymbol 24Private ReadOnly _fixedTypeParameters As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol)) 28Private _lazyReturnType As TypeSymbol 36instanceType As TypeSymbol, 63Dim receiverType As TypeSymbol = possiblyExtensionMethod.Parameters(0).Type 69Dim fixWithArray As ImmutableArray(Of TypeSymbol) = Nothing 78Dim typeArguments As ImmutableArray(Of TypeSymbol) = Nothing 126Dim fixWith = ArrayBuilder(Of TypeSymbol).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))) 207receiverType As TypeSymbol, 209fixedTypeParameters As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol)), 230Dim curryTypeArguments(curriedFromMethod.Arity - 1) As TypeSymbol 236Dim fixed As KeyValuePair(Of TypeParameterSymbol, TypeSymbol) = fixedTypeParameters(i) 264Public Overrides ReadOnly Property ReceiverType As TypeSymbol 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 286If TypeSymbol.Equals(pair.Key, reducedFromTypeParameter, TypeCompareKind.ConsiderEverything) Then 310Dim resultTypeArguments(_curriedFromMethod.Arity - 1) As TypeSymbol 312For Each pair As KeyValuePair(Of TypeParameterSymbol, TypeSymbol) In _fixedTypeParameters 377Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 379Return StaticCast(Of TypeSymbol).From(_curriedTypeParameters) 389Public Overrides ReadOnly Property ReturnType As TypeSymbol 392Dim type As TypeSymbol = _curriedFromMethod.ReturnType 721Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 818Public Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean 840Private _lazyType As TypeSymbol 853Public Overrides ReadOnly Property Type As TypeSymbol 857Dim paramType As TypeSymbol = m_CurriedFromParameter.Type 889Public MustOverride Overrides ReadOnly Property Type As TypeSymbol
Symbols\Retargeting\RetargetingEventSymbol.vb (1)
184Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Retargeting\RetargetingFieldSymbol.vb (1)
82Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Retargeting\RetargetingMethodSymbol.vb (4)
122Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 125Return StaticCast(Of TypeSymbol).From(Me.TypeParameters) 127Return ImmutableArray(Of TypeSymbol).Empty 162Public Overrides ReadOnly Property ReturnType As TypeSymbol
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (4)
41Private _lazyCoClass As TypeSymbol = ErrorTypeSymbol.UnknownResultType 157Friend Overrides ReadOnly Property CoClassType As TypeSymbol 160Dim coClass As TypeSymbol = _underlyingType.CoClassType 164Interlocked.CompareExchange(_lazyCoClass, coClass, DirectCast(ErrorTypeSymbol.UnknownResultType, TypeSymbol))
Symbols\Retargeting\RetargetingParameterSymbol.vb (1)
72Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Retargeting\RetargetingPropertySymbol.vb (1)
238Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Retargeting\RetargetingSymbolTranslator.vb (20)
139Return marshallingInfo.WithTranslatedTypes(Of TypeSymbol, RetargetingSymbolTranslator)( 140Function(type, translator) translator.Retarget(DirectCast(type, TypeSymbol), RetargetOptions.RetargetPrimitiveTypesByTypeCode), Me) 143Public Function Retarget(symbol As TypeSymbol, options As RetargetOptions) As TypeSymbol 144Return DirectCast(symbol.Accept(Me, options), TypeSymbol) 320Dim cached As TypeSymbol = Nothing 454Dim newArg = New TypeWithModifiers(DirectCast(arg.Type.Accept(Me, RetargetOptions.RetargetPrimitiveTypesByTypeCode), TypeSymbol), 457If Not anythingRetargeted AndAlso (modifiersHaveChanged OrElse Not TypeSymbol.Equals(newArg.Type, arg.Type, TypeCompareKind.ConsiderEverything)) Then 545Private Function IsOrClosedOverAnExplicitLocalType(symbol As TypeSymbol) As Boolean 589Dim oldElement As TypeSymbol = type.ElementType 590Dim newElement As TypeSymbol = Retarget(oldElement, RetargetOptions.RetargetPrimitiveTypesByTypeCode) 724Dim oldConstantType As TypeSymbol = DirectCast(oldConstant.TypeInternal, TypeSymbol) 725Dim newConstantType As TypeSymbol = If(oldConstantType Is Nothing, 742newConstantValue = Retarget(DirectCast(oldConstantValue, TypeSymbol), RetargetOptions.RetargetPrimitiveTypesByTypeCode) 855Public Function Retarget(sequence As ImmutableArray(Of TypeSymbol)) As ImmutableArray(Of TypeSymbol) 856Dim result = ArrayBuilder(Of TypeSymbol).GetInstance(sequence.Length) 858For Each ts As TypeSymbol In sequence 1058If TypeSymbol.Equals(retargetedEvent.Type, retargetedEventType, TypeCompareKind.ConsiderEverything) Then
Symbols\Retargeting\RetargetingTypeParameterSymbol.vb (1)
77Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol)
Symbols\SignatureOnlyMethodSymbol.vb (6)
22Private ReadOnly _containingType As TypeSymbol 28Private ReadOnly _returnType As TypeSymbol 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), 35ByVal returnsByRef As Boolean, ByVal returnType As TypeSymbol, ByVal returnTypeCustomModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier), 88Public Overrides ReadOnly Property ReturnType() As TypeSymbol 180Public Overrides ReadOnly Property TypeArguments() As ImmutableArray(Of TypeSymbol)
Symbols\SignatureOnlyParameterSymbol.vb (3)
18Private ReadOnly _type As TypeSymbol 27Public Sub New(ByVal type As TypeSymbol, 46Public Overrides ReadOnly Property Type() As TypeSymbol
Symbols\SignatureOnlyPropertySymbol.vb (3)
27Private ReadOnly _type As TypeSymbol 39[type] As TypeSymbol, 99Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Source\BoundLambdaParameterSymbol.vb (1)
26type As TypeSymbol,
Symbols\Source\CrefTypeParameterSymbol.vb (3)
76Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 78Return ImmutableArray(Of TypeSymbol).Empty 128Public Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\Source\CustomEventAccessorSymbol.vb (4)
215If Not eventType.IsErrorType AndAlso Not TypeSymbol.Equals(eventType, parameterType, TypeCompareKind.ConsiderEverything) Then 228If Not registrationTokenType.IsErrorType AndAlso firstImplementedEvent.IsWindowsRuntimeEvent <> (TypeSymbol.Equals(parameterType, registrationTokenType, TypeCompareKind.ConsiderEverything)) Then 235If Not registrationTokenType.IsErrorType AndAlso Not TypeSymbol.Equals(parameterType, registrationTokenType, TypeCompareKind.ConsiderEverything) Then 239If Not eventType.IsErrorType AndAlso Not TypeSymbol.Equals(eventType, parameterType, TypeCompareKind.ConsiderEverything) Then
Symbols\Source\CustomModifierUtils.vb (8)
18destinationTypeParameters As ImmutableArray(Of TypeSymbol), 19<[In], Out> ByRef destinationReturnType As TypeSymbol, 49Friend Shared Function CopyTypeCustomModifiers(sourceType As TypeSymbol, destinationType As TypeSymbol) As TypeSymbol 50Dim resultType As TypeSymbol 110Dim thisParamType As TypeSymbol = thisParam.Type 111Dim overriddenParamType As TypeSymbol = overriddenParam.Type
Symbols\Source\ImplementsHelper.vb (6)
177Dim interfaceType As TypeSymbol = binder.BindTypeSyntax(interfaceName, diagBag) 288If TypeSymbol.Equals(first.ContainingType, second.ContainingType, TypeCompareKind.ConsiderEverything) Then 459interfaceType As TypeSymbol, 562implementingType As TypeSymbol, 572Dim currType As TypeSymbol = implementingType 640currType As TypeSymbol,
Symbols\Source\ImplicitNamedTypeSymbol.vb (1)
156Friend Overrides ReadOnly Property CoClassType As TypeSymbol
Symbols\Source\LambdaParameterSymbol.vb (3)
17Private ReadOnly _type As TypeSymbol ' Can be Nothing for UnboundLambdaParameterSymbol. 24type As TypeSymbol, 149Public NotOverridable Overrides ReadOnly Property Type As TypeSymbol
Symbols\Source\LambdaSymbol.vb (10)
21Friend Shared ReadOnly ReturnTypeIsBeingInferred As TypeSymbol = New ErrorTypeSymbol() 27Friend Shared ReadOnly ReturnTypeIsUnknown As TypeSymbol = New ErrorTypeSymbol() 34Friend Shared ReadOnly ReturnTypePendingDelegate As TypeSymbol = New ErrorTypeSymbol() 39Friend Shared ReadOnly ReturnTypeVoidReplacement As TypeSymbol = New ErrorTypeSymbol() 44Friend Shared ReadOnly ErrorRecoveryInferenceError As TypeSymbol = New ErrorTypeSymbol() 53Protected m_ReturnType As TypeSymbol 61returnType As TypeSymbol, 296Public Overrides ReadOnly Property ReturnType As TypeSymbol 320Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 322Return ImmutableArray(Of TypeSymbol).Empty
Symbols\Source\LocalSymbol.vb (23)
25Private _lazyType As TypeSymbol 48type As TypeSymbol) As LocalSymbol 61type As TypeSymbol, 70Friend Shared Function Create(originalVariable As LocalSymbol, type As TypeSymbol) As LocalSymbol 102Friend Sub New(container As Symbol, type As TypeSymbol) 123Public Overridable ReadOnly Property Type As TypeSymbol 152Public Sub SetType(type As TypeSymbol) 162Friend Overridable Function ComputeType(Optional containingBinder As Binder = Nothing) As TypeSymbol 493type As TypeSymbol) 604Friend Overrides Function ComputeType(Optional containingBinder As Binder = Nothing) As TypeSymbol 606Dim type As TypeSymbol = ComputeTypeInternal(If(containingBinder, _binder)) 610Friend Overridable Function ComputeTypeInternal(containingBinder As Binder) As TypeSymbol 650type As TypeSymbol, 694Friend Overrides Function ComputeTypeInternal(localBinder As Binder) As TypeSymbol 696Dim type As TypeSymbol = Nothing 762Friend Overrides Function ComputeType(Optional containingBinder As Binder = Nothing) As TypeSymbol 768Dim type As TypeSymbol = Nothing 812Public Sub New(value As ConstantValue, type As TypeSymbol, expression As BoundExpression, diagnostics As ReadOnlyBindingDiagnostic(Of AssemblySymbol)) 845Friend Overrides Function ComputeTypeInternal(localBinder As Binder) As TypeSymbol 847Dim declType As TypeSymbol = Nothing 848Dim type As TypeSymbol = Nothing 915Private Sub SetConstantExpression(type As TypeSymbol, constantValue As ConstantValue, expression As BoundExpression, diagnostics As ReadOnlyBindingDiagnostic(Of AssemblySymbol)) 950Public Sub New(originalVariable As LocalSymbol, type As TypeSymbol)
Symbols\Source\MeParameterSymbol.vb (3)
18Private ReadOnly _type As TypeSymbol 25Friend Sub New(memberSymbol As Symbol, type As TypeSymbol) 36Public Overrides ReadOnly Property [Type] As TypeSymbol
Symbols\Source\OverrideHidingHelper.vb (2)
821If Not TypeSymbol.Equals(builder(i).ContainingType, memberContainingType, TypeCompareKind.ConsiderEverything) AndAlso 951If TypeSymbol.Equals(originalSym.ContainingType, originalOther.ContainingType, TypeCompareKind.ConsiderEverything) AndAlso
Symbols\Source\RangeVariableSymbol.vb (9)
22Private ReadOnly _type As TypeSymbol 28type As TypeSymbol 46Public Overridable ReadOnly Property Type As TypeSymbol 131type As TypeSymbol 143type As TypeSymbol 152type As TypeSymbol 165type As TypeSymbol 246type As TypeSymbol 287type As TypeSymbol
Symbols\Source\SourceAssemblySymbol.vb (1)
250If uniqueAttributes Is Nothing OrElse Not uniqueAttributes.Contains(Function(a) TypeSymbol.Equals(a.AttributeClass, attributeClass, TypeCompareKind.ConsiderEverything)) Then
Symbols\Source\SourceClonedParameterSymbol.vb (6)
42Public Overrides ReadOnly Property Type As TypeSymbol 161Friend Overrides Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol 168Private ReadOnly _type As TypeSymbol 176type As TypeSymbol, 188Public Overrides ReadOnly Property Type As TypeSymbol 230Friend Overrides Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol
Symbols\Source\SourceComplexParameterSymbol.vb (5)
277type As TypeSymbol, 293type As TypeSymbol, 405Friend Overrides Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol 423type As TypeSymbol, 452Friend Overrides Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol
Symbols\Source\SourceDelegateMethodSymbol.vb (13)
26Private ReadOnly _returnType As TypeSymbol 32returnType As TypeSymbol) 47Public Overrides ReadOnly Property ReturnType As TypeSymbol 78Dim returnType As TypeSymbol = BindReturnType(syntax, binder, diagnostics) 108Private Shared Function BindReturnType(syntax As VisualBasicSyntaxNode, binder As Binder, diagnostics As BindingDiagnosticBag) As TypeSymbol 215voidType As TypeSymbol, 216objectType As TypeSymbol, 217intPtrType As TypeSymbol, 248returnType As TypeSymbol, 275iAsyncResultType As TypeSymbol, 276objectType As TypeSymbol, 277asyncCallbackType As TypeSymbol, 323iAsyncResultType As TypeSymbol,
Symbols\Source\SourceEnumConstantSymbol.vb (1)
63Public NotOverridable Overrides ReadOnly Property Type As TypeSymbol
Symbols\Source\SourceEventSymbol.vb (4)
46Private _lazyType As TypeSymbol 153Private Function ComputeType(diagnostics As BindingDiagnosticBag, <Out()> ByRef isTypeInferred As Boolean, <Out()> ByRef isDelegateFromImplements As Boolean) As TypeSymbol 161Dim type As TypeSymbol 461Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Source\SourceFile.vb (1)
360Dim type = TryCast(namespaceOrType, TypeSymbol)
Symbols\Source\SourceLambdaSymbol.vb (1)
21returnType As TypeSymbol,
Symbols\Source\SourceMemberContainerTypeSymbol.vb (29)
489If TypeSymbol.Equals(iface, implementedInterface, TypeCompareKind.ConsiderEverything) Then 573type As TypeSymbol, 610type As TypeSymbol, 1042For Each constraint As TypeSymbol In param.ConstraintTypesNoUseSiteDiagnostics 1108Dim type As TypeSymbol = [event].Type 2999If Not Equals(TryCast(sym, TypeSymbol), type, TypeCompareKind.ConsiderEverything) Then 3044Dim asType = TryCast(firstAssociatedSymbol, TypeSymbol) 3794Debug.Assert(Not TypeSymbol.Equals([interface], other, TypeCompareKind.ConsiderEverything)) 3820Debug.Assert(interface2.IsGenericType AndAlso TypeSymbol.Equals(interface1.OriginalDefinition, interface2.OriginalDefinition, TypeCompareKind.ConsiderEverything)) 3911If (TypeSymbol.Equals(directInterface1, interface1, TypeCompareKind.ConsiderEverything) AndAlso TypeSymbol.Equals(directInterface2, interface2, TypeCompareKind.ConsiderEverything)) Then 3915ElseIf (Not TypeSymbol.Equals(directInterface1, interface1, TypeCompareKind.ConsiderEverything) AndAlso TypeSymbol.Equals(directInterface2, interface2, TypeCompareKind.ConsiderEverything)) Then 3920ElseIf (TypeSymbol.Equals(directInterface1, interface1, TypeCompareKind.ConsiderEverything) AndAlso Not TypeSymbol.Equals(directInterface2, interface2, TypeCompareKind.ConsiderEverything)) Then 3926Debug.Assert(Not TypeSymbol.Equals(directInterface1, interface1, TypeCompareKind.ConsiderEverything) AndAlso Not TypeSymbol.Equals(directInterface2, interface2, TypeCompareKind.ConsiderEverything)) 3992If (TypeSymbol.Equals(directInterface1, interface1, TypeCompareKind.ConsiderEverything) AndAlso TypeSymbol.Equals(directInterface2, interface2, TypeCompareKind.ConsiderEverything)) Then 3996ElseIf (Not TypeSymbol.Equals(directInterface1, interface1, TypeCompareKind.ConsiderEverything) AndAlso TypeSymbol.Equals(directInterface2, interface2, TypeCompareKind.ConsiderEverything)) Then 4001ElseIf (TypeSymbol.Equals(directInterface1, interface1, TypeCompareKind.ConsiderEverything) AndAlso Not TypeSymbol.Equals(directInterface2, interface2, TypeCompareKind.ConsiderEverything)) Then 4007Debug.Assert(Not TypeSymbol.Equals(directInterface1, interface1, TypeCompareKind.ConsiderEverything) AndAlso Not TypeSymbol.Equals(directInterface2, interface2, TypeCompareKind.ConsiderEverything)) 4064Inherits EqualityComparer(Of TypeSymbol) 4078Public Overrides Function Equals(type1 As TypeSymbol, type2 As TypeSymbol) As Boolean 4084Public Overrides Function GetHashCode(obj As TypeSymbol) As Integer
Symbols\Source\SourceMemberFieldSymbol.vb (13)
20Private _lazyType As TypeSymbol 75Public Overrides ReadOnly Property Type As TypeSymbol 90Private Function ComputeType(diagBag As BindingDiagnosticBag) As TypeSymbol 100Private Function GetDeclaredType(diagBag As BindingDiagnosticBag) As TypeSymbol 140Dim restrictedType As TypeSymbol = Nothing 160ignoreTypeSyntaxDiagnostics As Boolean) As TypeSymbol 164Dim asClauseType As TypeSymbol = Nothing 178Dim varType As TypeSymbol 213diagnostics As BindingDiagnosticBag) As TypeSymbol 253Friend Overrides Function GetInferredType(inProgress As ConstantFieldsInProgress) As TypeSymbol 282Protected Overridable Function GetInferredConstantType(inProgress As ConstantFieldsInProgress) As TypeSymbol 351Protected Overrides Function GetInferredConstantType(inProgress As ConstantFieldsInProgress) As TypeSymbol 398Protected Overrides Function GetInferredConstantType(inProgress As ConstantFieldsInProgress) As TypeSymbol
Symbols\Source\SourceMemberMethodSymbol.vb (5)
602Dim eventContainingType As TypeSymbol = Nothing 658Dim isFromBase = Not TypeSymbol.Equals(witheventsProperty.ContainingType, Me.ContainingType, TypeCompareKind.ConsiderEverything) 853Friend Shared Function FindWithEventsProperty(containingType As TypeSymbol, 891Friend Shared Function FindEvent(containingType As TypeSymbol, 929Private Shared Function FindProperty(containingType As TypeSymbol,
Symbols\Source\SourceMethodSymbol.vb (10)
1246Public NotOverridable Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 1249Return StaticCast(Of TypeSymbol).From(TypeParameters) 2015Public MustOverride Overrides ReadOnly Property ReturnType As TypeSymbol 2035Private _lazyReturnType As TypeSymbol 2090Dim retType As TypeSymbol = GetReturnType(sourceModule, errorLocation, diagBag) 2107replaceMethodTypeParametersWithFakeTypeParameters = TypeSubstitution.Create(Me, Me.TypeParameters, StaticCast(Of TypeSymbol).From(fakeTypeParameters)) 2227Public NotOverridable Overrides ReadOnly Property ReturnType As TypeSymbol 2249diagBag As BindingDiagnosticBag) As TypeSymbol 2272Dim retType As TypeSymbol 2311Dim restrictedType As TypeSymbol = Nothing
Symbols\Source\SourceModuleSymbol.vb (3)
502Dim type = TryCast(namespaceOrType, TypeSymbol) 514Dim type = TryCast(target, TypeSymbol) 529Private Sub ValidateImport(type As TypeSymbol, info As GlobalImportInfo, diagnostics As BindingDiagnosticBag)
Symbols\Source\SourceNamedTypeSymbol.vb (11)
64Private _lazyCoClassType As TypeSymbol = ErrorTypeSymbol.UnknownResultType 880Dim constraintTypes1 = New HashSet(Of TypeSymbol) 1220Dim interfacesInThisPartial As New HashSet(Of TypeSymbol)() 1340If TypeSymbol.Equals(bt, base, TypeCompareKind.ConsiderEverything) Then 1770Debug.Assert(TypeSymbol.Equals(underlyingType, Me._lazyEnumUnderlyingType, TypeCompareKind.ConsiderEverything)) 1933Friend Overrides ReadOnly Property CoClassType As TypeSymbol 1937Interlocked.CompareExchange(_lazyCoClassType, Nothing, DirectCast(ErrorTypeSymbol.UnknownResultType, TypeSymbol)) 1944DirectCast(ErrorTypeSymbol.UnknownResultType, TypeSymbol)) 2222Debug.Assert(DirectCast(argument.TypeInternal, TypeSymbol).Equals(DeclaringCompilation.GetWellKnownType(WellKnownType.System_Type), TypeCompareKind.ConsiderEverything)) 2229DirectCast(argument.ValueInternal, TypeSymbol), 2230DirectCast(ErrorTypeSymbol.UnknownResultType, TypeSymbol))
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (11)
642Public Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean 726Public Overloads Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 830Friend Overrides ReadOnly Property CoClassType As TypeSymbol 940Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 942Return ImmutableArray(Of TypeSymbol).Empty 1021Friend Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo 1286Public Overrides ReadOnly Property ReturnType As TypeSymbol 1310Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 1312Return ImmutableArray(Of TypeSymbol).Empty 1618Public Overrides ReadOnly Property Type As TypeSymbol 1824Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Source\SourceParameterSymbol.vb (3)
18Private ReadOnly _type As TypeSymbol 24type As TypeSymbol, 79Public NotOverridable Overrides ReadOnly Property Type As TypeSymbol
Symbols\Source\SourceParameterSymbolBase.vb (1)
77Friend MustOverride Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol
Symbols\Source\SourcePropertyAccessorSymbol.vb (3)
26Private _lazyReturnType As TypeSymbol 180Public Overrides ReadOnly Property ReturnType As TypeSymbol 224diagBag As BindingDiagnosticBag) As TypeSymbol
Symbols\Source\SourcePropertySymbol.vb (6)
32Private _lazyType As TypeSymbol 332Public Overrides ReadOnly Property Type As TypeSymbol 339Private Function ComputeType(diagnostics As BindingDiagnosticBag) As TypeSymbol 380Dim restrictedType As TypeSymbol = Nothing 742Dim retType As TypeSymbol = ComputeType(diagnostics) 781Dim returnTypeWithCustomModifiers As TypeSymbol = overridden.Type
Symbols\Source\SourceSimpleParameterSymbol.vb (4)
29type As TypeSymbol, 162Friend Overrides Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol 180type As TypeSymbol, 206Friend Overrides Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol
Symbols\Source\SourceTypeParameterSymbol.vb (2)
21Private _lazyConstraintTypes As ImmutableArray(Of TypeSymbol) 86Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol)
Symbols\Source\SynthesizedBackingFieldSymbol.vb (1)
21Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Source\SynthesizedEntryPointSymbol.vb (9)
19Private ReadOnly _returnType As TypeSymbol 48Private Sub New(containingType As NamedTypeSymbol, returnType As TypeSymbol) 139Public Overrides ReadOnly Property ReturnType As TypeSymbol 151Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 153Return ImmutableArray(Of TypeSymbol).Empty 197Private Shared Function GetRequiredMethod(type As TypeSymbol, methodName As String, diagnostics As BindingDiagnosticBag) As MethodSymbol 225Friend Sub New(containingType As NamedTypeSymbol, returnType As TypeSymbol, getAwaiterMethod As MethodSymbol, getResultMethod As MethodSymbol) 317Friend Sub New(containingType As NamedTypeSymbol, returnType As TypeSymbol, submissionArrayType As TypeSymbol)
Symbols\Source\SynthesizedEventAccessorSymbol.vb (7)
20Private _lazyReturnType As TypeSymbol 53Dim parameterType As TypeSymbol 73Public Overrides ReadOnly Property ReturnType As TypeSymbol 79Dim type As TypeSymbol 278Dim delegateType As TypeSymbol = eventSymbol.Type 281Dim boolType As TypeSymbol = compilation.GetSpecialType(SpecialType.System_Boolean) 372compareExchangeMethod = compareExchangeMethod.Construct(ImmutableArray.Create(Of TypeSymbol)(delegateType))
Symbols\Source\SynthesizedEventBackingFieldSymbol.vb (2)
18Private _lazyType As TypeSymbol 34Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Source\SynthesizedFieldSymbol.vb (3)
24Protected ReadOnly _type As TypeSymbol 31type As TypeSymbol, 52Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Source\SynthesizedInteractiveInitializerMethod.vb (5)
14Friend ReadOnly ResultType As TypeSymbol 19Private ReadOnly _returnType As TypeSymbol 111Public Overrides ReadOnly Property ReturnType As TypeSymbol 151ByRef resultType As TypeSymbol, 152ByRef returnType As TypeSymbol)
Symbols\Source\SynthesizedLambdaSymbol.vb (2)
22returnType As TypeSymbol, 84Public Sub SetQueryLambdaReturnType(returnType As TypeSymbol)
Symbols\Source\SynthesizedMainTypeEntryPoint.vb (1)
40Public Overrides ReadOnly Property ReturnType As TypeSymbol
Symbols\Source\SynthesizedMyGroupCollectionPropertyAccessorSymbol.vb (2)
164Public Overrides ReadOnly Property ReturnType As TypeSymbol 209Public Overrides ReadOnly Property ReturnType As TypeSymbol
Symbols\Source\SynthesizedMyGroupCollectionPropertyBackingFieldSymbol.vb (1)
24type As TypeSymbol,
Symbols\Source\SynthesizedMyGroupCollectionPropertySymbol.vb (1)
55Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Source\SynthesizedWithEventsAccessorSymbol.vb (4)
149Public Overrides ReadOnly Property ReturnType As TypeSymbol 159Private ReadOnly _returnType As TypeSymbol 164returnType As TypeSymbol, 194Public Overrides ReadOnly Property ReturnType As TypeSymbol
Symbols\Source\UnboundLambdaParameterSymbol.vb (2)
26type As TypeSymbol, 87Dim paramType As TypeSymbol = binder.DecodeModifiedIdentifierType(syntax.Identifier, syntax.AsClause, Nothing, getErrorInfo, diagBag, Binder.ModifiedIdentifierTypeDecoderContext.LambdaParameterType)
Symbols\SubstitutableTypeParameterSymbol.vb (1)
21Public NotOverridable Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\SubstitutedErrorType.vb (4)
115Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 120Return StaticCast(Of TypeSymbol).From(TypeParameters) 201Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 248Public Overrides Function Equals(obj As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\SubstitutedEventSymbol.vb (2)
27Private _lazyType As TypeSymbol 66Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\SubstitutedFieldSymbol.vb (1)
162Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\SubstitutedMethodSymbol.vb (22)
114Public Overrides ReadOnly Property ReceiverType As TypeSymbol 124Public Overrides Function GetTypeInferredDuringReduction(reducedFromTypeParameter As TypeParameterSymbol) As TypeSymbol 132Friend Overrides ReadOnly Property FixedTypeParameters As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol)) 305Public Overrides ReadOnly Property ReturnType As TypeSymbol 323Public MustOverride Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 401Public MustOverride Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol 447Debug.Assert(TypeSymbol.Equals(propertyOrEventSymbol.ContainingType, Me.ContainingType, TypeCompareKind.ConsiderEverything)) 517Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol 521Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 523Return ImmutableArray(Of TypeSymbol).Empty 659Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol 681Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 683Return StaticCast(Of TypeSymbol).From(_typeParameters) 701Protected ReadOnly _typeArguments As ImmutableArray(Of TypeSymbol) 703Protected Sub New(substitution As TypeSubstitution, typeArguments As ImmutableArray(Of TypeSymbol)) 728Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol 732Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 790Public Sub New(constructedFrom As SpecializedGenericMethod, substitution As TypeSubstitution, typeArguments As ImmutableArray(Of TypeSymbol)) 836Public Sub New(substitution As TypeSubstitution, typeArguments As ImmutableArray(Of TypeSymbol)) 880Dim resultTypeArguments(reducedDef.Arity - 1) As TypeSymbol 882For Each pair As KeyValuePair(Of TypeParameterSymbol, TypeSymbol) In Me.FixedTypeParameters 887Dim typeArguments As ImmutableArray(Of TypeSymbol) = Me.TypeArguments
Symbols\SubstitutedNamedType.vb (14)
182Friend Overrides ReadOnly Property CoClassType As TypeSymbol 437Debug.Assert(TypeSymbol.Equals(member.ContainingType, Me.OriginalDefinition, TypeCompareKind.ConsiderEverything)) 515Public NotOverridable Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean 642Friend NotOverridable Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo 722Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 724Return StaticCast(Of TypeSymbol).From(TypeParameters) 765Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 887Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 889Return ImmutableArray(Of TypeSymbol).Empty 909Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 957Private ReadOnly _typeArguments As ImmutableArray(Of TypeSymbol) 983Friend NotOverridable Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 1009Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 1013Friend NotOverridable Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
Symbols\SubstitutedParameterSymbol.vb (1)
98Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\SubstitutedPropertySymbol.vb (1)
214Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\SubstitutedTypeParameterSymbol.vb (2)
95Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 181Public Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\SymbolExtensions.vb (1)
34Select Case DirectCast(target, TypeSymbol).TypeKind
Symbols\SynthesizedSymbols\SynthesizedClonedTypeParameterSymbol.vb (2)
33Private _lazyConstraints As ImmutableArray(Of TypeSymbol) 69Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol)
Symbols\SynthesizedSymbols\SynthesizedConstructorBase.vb (2)
26Protected ReadOnly m_voidType As TypeSymbol 199Public NotOverridable Overrides ReadOnly Property ReturnType As TypeSymbol
Symbols\SynthesizedSymbols\SynthesizedDelegateMethodSymbol.vb (5)
23Private ReadOnly _returnType As TypeSymbol 38returnType As TypeSymbol) 345Public Overrides ReadOnly Property ReturnType As TypeSymbol 378Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 380Return ImmutableArray(Of TypeSymbol).Empty
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (1)
301Friend Overrides ReadOnly Property CoClassType As TypeSymbol
Symbols\SynthesizedSymbols\SynthesizedGlobal_StringSwitchHashMethodSymbol.vb (2)
26Private ReadOnly _returnType As TypeSymbol 65Public Overrides ReadOnly Property ReturnType As TypeSymbol
Symbols\SynthesizedSymbols\SynthesizedGlobalMethodBase.vb (2)
298Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 300Return ImmutableArray(Of TypeSymbol).Empty
Symbols\SynthesizedSymbols\SynthesizedHotReloadExceptionConstructorSymbol.vb (2)
16Public Sub New(container As NamedTypeSymbol, stringType As TypeSymbol, intType As TypeSymbol)
Symbols\SynthesizedSymbols\SynthesizedHotReloadExceptionSymbol.vb (3)
24stringType As TypeSymbol, 25intType As TypeSymbol) 206Friend Overrides ReadOnly Property CoClassType As TypeSymbol
Symbols\SynthesizedSymbols\SynthesizedInterfaceImplementationStubSymbol.vb (6)
23Private ReadOnly _returnType As TypeSymbol 41_typeParametersSubstitution = TypeSubstitution.Create(implementingMethod, implementingMethod.TypeParameters, StaticCast(Of TypeSymbol).From(_typeParameters)) 44implementedMethod = implementedMethod.Construct(StaticCast(Of TypeSymbol).From(_typeParameters)) 77Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 79Return StaticCast(Of TypeSymbol).From(Me.TypeParameters) 83Public Overrides ReadOnly Property ReturnType As TypeSymbol
Symbols\SynthesizedSymbols\SynthesizedIntrinsicOperatorSymbol.vb (9)
13Private ReadOnly _returnType As TypeSymbol 15Public Sub New(container As NamedTypeSymbol, name As String, rightType As TypeSymbol, returnType As TypeSymbol) 24Public Sub New(container As NamedTypeSymbol, name As String, returnType As TypeSymbol) 60Public Overrides ReadOnly Property ReturnType As TypeSymbol 79TypeSymbol.Equals(m_containingType, other.m_containingType, TypeCompareKind.ConsiderEverything) AndAlso 80TypeSymbol.Equals(_returnType, other._returnType, TypeCompareKind.ConsiderEverything) Then 83If Not TypeSymbol.Equals(_parameters(i).Type, other._parameters(i).Type, TypeCompareKind.ConsiderEverything) Then 191Public Sub New(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, name As String)
Symbols\SynthesizedSymbols\SynthesizedLocal.vb (1)
21type As TypeSymbol,
Symbols\SynthesizedSymbols\SynthesizedMethod.vb (2)
51newType As TypeSymbol, 94Public Overrides ReadOnly Property ReturnType As TypeSymbol
Symbols\SynthesizedSymbols\SynthesizedMethodBase.vb (2)
132Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 134Return ImmutableArray(Of TypeSymbol).Empty
Symbols\SynthesizedSymbols\SynthesizedOverridingWitheventsProperty.vb (1)
205Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\SynthesizedSymbols\SynthesizedParameterSymbol.vb (9)
21Protected ReadOnly _type As TypeSymbol 32Public Sub New(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, name As String) 232Public NotOverridable Overrides ReadOnly Property Type As TypeSymbol 274Public Sub New(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, isByRef As Boolean, Optional name As String = "") 286Public Sub New(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, isByRef As Boolean, name As String, isOptional As Boolean, defaultValue As ConstantValue) 294Public Shared Function Create(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, isByRef As Boolean, name As String, 306Dim valueParameterType As TypeSymbol = propertySymbol.Type 392Public Sub New(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, isByRef As Boolean, name As String, 427Public Sub New(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, isByRef As Boolean, name As String, location As Location)
Symbols\SynthesizedSymbols\SynthesizedSimpleMethodSymbol.vb (3)
22Private ReadOnly _returnType As TypeSymbol 26returnType As TypeSymbol, 76Public Overrides ReadOnly Property ReturnType As TypeSymbol
Symbols\Tuples\TupleErrorFieldSymbol.vb (3)
39type As TypeSymbol, 118Public Overrides ReadOnly Property Type As TypeSymbol 138(other IsNot Nothing AndAlso Me._tupleElementIndex = other._tupleElementIndex AndAlso TypeSymbol.Equals(Me.ContainingType, other.ContainingType, TypeCompareKind.ConsiderEverything))
Symbols\Tuples\TupleEventSymbol.vb (2)
38Public Overrides ReadOnly Property Type As TypeSymbol 101(other IsNot Nothing AndAlso TypeSymbol.Equals(Me._containingType, other._containingType, TypeCompareKind.ConsiderEverything) AndAlso Me._underlyingEvent = other._underlyingEvent)
Symbols\Tuples\TupleFieldSymbol.vb (2)
80Public Overrides ReadOnly Property Type As TypeSymbol 117TypeSymbol.Equals(_containingTuple, other._containingTuple, TypeCompareKind.ConsiderEverything)
Symbols\Tuples\TupleMethodSymbol.vb (4)
77Public Overrides ReadOnly Property ReturnType As TypeSymbol 95Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 97Return StaticCast(Of TypeSymbol).From(Me._typeParameters) 147(other IsNot Nothing AndAlso TypeSymbol.Equals(Me._containingType, other._containingType, TypeCompareKind.ConsiderEverything) AndAlso Me._underlyingMethod.ConstructedFrom = other._underlyingMethod.ConstructedFrom)
Symbols\Tuples\TuplePropertySymbol.vb (2)
34Public Overrides ReadOnly Property Type As TypeSymbol 129(other IsNot Nothing AndAlso TypeSymbol.Equals(Me._containingType, other._containingType, TypeCompareKind.ConsiderEverything) AndAlso Me._underlyingProperty = other._underlyingProperty)
Symbols\Tuples\TupleTypeSymbol.vb (24)
44Private ReadOnly _elementTypes As ImmutableArray(Of TypeSymbol) 84Public Overrides ReadOnly Property TupleElementTypes As ImmutableArray(Of TypeSymbol) 216Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 218Return ImmutableArray(Of TypeSymbol).Empty 333elementNames As ImmutableArray(Of String), elementTypes As ImmutableArray(Of TypeSymbol), 342elementTypes As ImmutableArray(Of TypeSymbol), errorPositions As ImmutableArray(Of Boolean)) 361elementTypes As ImmutableArray(Of TypeSymbol), 413Dim elementTypes As ImmutableArray(Of TypeSymbol) 416Dim tupleElementTypes As ImmutableArray(Of TypeSymbol) = tupleCompatibleType.TypeArgumentsNoUseSiteDiagnostics(TupleTypeSymbol.RestPosition - 1).TupleElementTypes 417Dim instance As ArrayBuilder(Of TypeSymbol) = ArrayBuilder(Of TypeSymbol).GetInstance(TupleTypeSymbol.RestPosition - 1 + tupleElementTypes.Length) 461Dim typeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) = tupleCompatibleType.TypeArgumentsNoUseSiteDiagnostics 512Friend Shared Sub AddElementTypes(underlyingTupleType As NamedTypeSymbol, tupleElementTypes As ArrayBuilder(Of TypeSymbol)) 543Private Shared Function GetTupleUnderlyingType(elementTypes As ImmutableArray(Of TypeSymbol), syntax As SyntaxNode, compilation As VisualBasicCompilation, diagnostics As BindingDiagnosticBag) As NamedTypeSymbol 554Dim namedTypeSymbol As NamedTypeSymbol = wellKnownType.Construct(ImmutableArray.Create(Of TypeSymbol)(elementTypes, (chainLength - 1) * (TupleTypeSymbol.RestPosition - 1), remainder)) 563Dim typeArguments As ImmutableArray(Of TypeSymbol) = ImmutableArray.Create(Of TypeSymbol)(elementTypes, ([loop] - 1) * (TupleTypeSymbol.RestPosition - 1), TupleTypeSymbol.RestPosition - 1).Add(namedTypeSymbol) 970Public Overrides Function Equals(obj As TypeSymbol, comparison As TypeCompareKind) As Boolean 1021Friend Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo 1057Public Shared Function TransformToTupleIfCompatible(target As TypeSymbol) As TypeSymbol 1058Dim result As TypeSymbol 1067Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 1105Friend Shared Sub ReportNamesMismatchesIfAny(destination As TypeSymbol, literal As BoundTupleLiteral, diagnostics As BindingDiagnosticBag)
Symbols\TypeParameterConstraint.vb (3)
22Public Sub New(type As TypeSymbol, loc As Location) 27Private Sub New(kind As TypeParameterConstraintKind, type As TypeSymbol, loc As Location) 40Public ReadOnly TypeConstraint As TypeSymbol
Symbols\TypeParameterSymbol.vb (11)
42Protected NotOverridable Overrides ReadOnly Property OriginalTypeSymbolDefinition As TypeSymbol 62Friend MustOverride ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 64Friend Function ConstraintTypesWithDefinitionUseSiteDiagnostics(<[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of TypeSymbol) 205Friend Shared Function GetConstraintTypesOnly(constraints As ImmutableArray(Of TypeParameterConstraint)) As ImmutableArray(Of TypeSymbol) 207Return ImmutableArray(Of TypeSymbol).Empty 210Dim builder = ArrayBuilder(Of TypeSymbol).GetInstance() 245Private Shared Function ConstraintImpliesReferenceType(constraint As TypeSymbol) As Boolean 349Friend Shared Function InternalSubstituteTypeParametersDistinct(substitution As TypeSubstitution, types As ImmutableArray(Of TypeSymbol)) As ImmutableArray(Of TypeSymbol) 353Private Shared ReadOnly s_substituteFunc As Func(Of TypeSymbol, TypeSubstitution, TypeSymbol) = Function(type, substitution) type.InternalSubstituteTypeParameters(substitution).Type
Symbols\TypeSubstitution.vb (10)
154Public Function GetTypeArgumentsFor(originalDefinition As NamedTypeSymbol, <Out> ByRef hasTypeArgumentsCustomModifiers As Boolean) As ImmutableArray(Of TypeSymbol) 160Dim result = ArrayBuilder(Of TypeSymbol).GetInstance(originalDefinition.Arity, fillWithValue:=Nothing) 244Dim value As TypeSymbol = pair.Value.Type 379args() As TypeSymbol, 480Private Shared ReadOnly s_withoutModifiers As Func(Of TypeSymbol, TypeWithModifiers) = Function(arg) New TypeWithModifiers(arg) 485args As ImmutableArray(Of TypeSymbol), 497args As ImmutableArray(Of TypeSymbol), 861Public Function SubstituteCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier)) As ImmutableArray(Of CustomModifier) 879If Not TypeSymbol.Equals(modifier, substituted, TypeCompareKind.ConsiderEverything) Then 888If Not TypeSymbol.Equals(modifier, substituted, TypeCompareKind.ConsiderEverything) Then
Symbols\TypeSymbol.vb (20)
34Private Shared ReadOnly s_EmptyTypeSymbols() As TypeSymbol = Array.Empty(Of TypeSymbol) 59Public Shared ReadOnly Property EmptyTypeSymbolsList As IList(Of TypeSymbol) 70Public Shadows ReadOnly Property OriginalDefinition As TypeSymbol 76Protected Overridable ReadOnly Property OriginalTypeSymbolDefinition As TypeSymbol 316Public Overloads Shared Operator =(left As TypeSymbol, right As TypeSymbol) As Boolean 321Public Overloads Shared Operator <>(left As TypeSymbol, right As TypeSymbol) As Boolean 326Public Overloads Shared Operator =(left As Symbol, right As TypeSymbol) As Boolean 331Public Overloads Shared Operator <>(left As Symbol, right As TypeSymbol) As Boolean 336Public Overloads Shared Operator =(left As TypeSymbol, right As Symbol) As Boolean 341Public Overloads Shared Operator <>(left As TypeSymbol, right As Symbol) As Boolean 345Public Overloads Shared Function Equals(left As TypeSymbol, right As TypeSymbol, comparison As TypeCompareKind) As Boolean 350Return Equals(TryCast(obj, TypeSymbol), TypeCompareKind.ConsiderEverything) 354Return Equals(TryCast(other, TypeSymbol), compareKind) 359Public MustOverride Overloads Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean 474Public Overridable ReadOnly Property TupleElementTypes() As ImmutableArray(Of TypeSymbol) 534Friend MustOverride Overloads Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
Symbols\TypeSymbolExtensions.vb (147)
14Public Function IsNullableType(this As TypeSymbol) As Boolean 19Public Function IsNullableOfBoolean(this As TypeSymbol) As Boolean 24Public Function GetNullableUnderlyingType(type As TypeSymbol) As TypeSymbol 30Public Function GetNullableUnderlyingTypeOrSelf(type As TypeSymbol) As TypeSymbol 41Public Function GetEnumUnderlyingType(type As TypeSymbol) As TypeSymbol 48Public Function GetEnumUnderlyingTypeOrSelf(type As TypeSymbol) As TypeSymbol 53Public Function GetTupleUnderlyingType(type As TypeSymbol) As TypeSymbol 60Public Function GetTupleUnderlyingTypeOrSelf(type As TypeSymbol) As TypeSymbol 65Public Function TryGetElementTypesIfTupleOrCompatible(type As TypeSymbol, <Out> ByRef elementTypes As ImmutableArray(Of TypeSymbol)) As Boolean 85Dim elementTypesBuilder = ArrayBuilder(Of TypeSymbol).GetInstance(cardinality) 95Public Function GetElementTypesOfTupleOrCompatible(Type As TypeSymbol) As ImmutableArray(Of TypeSymbol) 109Dim elementTypesBuilder = ArrayBuilder(Of TypeSymbol).GetInstance() 116Friend Function IsEnumType(type As TypeSymbol) As Boolean 122Friend Function IsValidEnumUnderlyingType(type As TypeSymbol) As Boolean 127Friend Function IsClassOrInterfaceType(type As TypeSymbol) As Boolean 132Friend Function IsInterfaceType(type As TypeSymbol) As Boolean 138Friend Function IsClassType(type As TypeSymbol) As Boolean 144Friend Function IsStructureType(type As TypeSymbol) As Boolean 150Friend Function IsModuleType(type As TypeSymbol) As Boolean 156Friend Function IsErrorType(type As TypeSymbol) As Boolean 162Friend Function IsArrayType(type As TypeSymbol) As Boolean 168Friend Function IsCharSZArray(type As TypeSymbol) As Boolean 181Friend Function IsDBNullType(type As TypeSymbol) As Boolean 204Friend Function IsMicrosoftVisualBasicCollection(type As TypeSymbol) As Boolean 225Friend Function IsTypeParameter(type As TypeSymbol) As Boolean 231Friend Function IsDelegateType(type As TypeSymbol) As Boolean 237Friend Function IsSameTypeIgnoringAll(t1 As TypeSymbol, t2 As TypeSymbol) As Boolean 245Friend Function IsSameType(t1 As TypeSymbol, t2 As TypeSymbol, compareKind As TypeCompareKind) As Boolean 246Return TypeSymbol.Equals(t1, t2, compareKind) 285Public Function GetSpecialTypeSafe(this As TypeSymbol) As SpecialType 290Public Function IsNumericType(this As TypeSymbol) As Boolean 295Public Function IsIntegralType(this As TypeSymbol) As Boolean 300Public Function IsUnsignedIntegralType(this As TypeSymbol) As Boolean 305Public Function IsSignedIntegralType(this As TypeSymbol) As Boolean 310Public Function IsFloatingType(this As TypeSymbol) As Boolean 315Public Function IsSingleType(this As TypeSymbol) As Boolean 320Public Function IsDoubleType(this As TypeSymbol) As Boolean 325Public Function IsBooleanType(this As TypeSymbol) As Boolean 330Public Function IsCharType(this As TypeSymbol) As Boolean 335Public Function IsStringType(this As TypeSymbol) As Boolean 340Public Function IsObjectType(this As TypeSymbol) As Boolean 345Public Function IsStrictSupertypeOfConcreteDelegate(this As TypeSymbol) As Boolean 350Public Function IsVoidType(this As TypeSymbol) As Boolean 355Public Function IsDecimalType(this As TypeSymbol) As Boolean 360Public Function IsDateTimeType(this As TypeSymbol) As Boolean 365Public Function IsRestrictedType(this As TypeSymbol) As Boolean 370Public Function IsRestrictedArrayType(this As TypeSymbol, <Out> ByRef restrictedType As TypeSymbol) As Boolean 380Public Function IsRestrictedTypeOrArrayType(this As TypeSymbol, <Out> ByRef restrictedType As TypeSymbol) As Boolean 395Public Function IsIntrinsicType(this As TypeSymbol) As Boolean 400Public Function IsIntrinsicValueType(this As TypeSymbol) As Boolean 408Public Function IsNotInheritable(this As TypeSymbol) As Boolean 422Public Function GetConstantValueTypeDiscriminator(this As TypeSymbol) As ConstantValueTypeDiscriminator 470Public Function IsValidForConstantValue(this As TypeSymbol, value As ConstantValue) As Boolean 478Public Function AllowsCompileTimeConversions(this As TypeSymbol) As Boolean 483Public Function AllowsCompileTimeOperations(this As TypeSymbol) As Boolean 488Public Function CanContainUserDefinedOperators(this As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean 502Dim underlyingType As TypeSymbol = this.GetNullableUnderlyingTypeOrSelf().GetEnumUnderlyingTypeOrSelf() 513Public Function TypeToIndex(type As TypeSymbol) As Integer? 521Public Function DigThroughArrayType(possiblyArrayType As TypeSymbol) As TypeSymbol 536If TypeSymbol.Equals(inner, outer, TypeCompareKind.ConsiderEverything) Then 547Public Function ImplementsInterface(subType As TypeSymbol, superInterface As TypeSymbol, comparer As EqualityComparer(Of TypeSymbol), <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean 549comparer = EqualityComparer(Of TypeSymbol).Default 566type As TypeSymbol, 578source As TypeSymbol, 581Dim current As TypeSymbol = source 597Public Function IsBaseTypeOf(superType As TypeSymbol, subType As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean 598Dim current As TypeSymbol = subType 616Public Function IsOrDerivedFrom(derivedType As NamedTypeSymbol, baseType As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean 630Public Function IsOrDerivedFrom(derivedType As TypeSymbol, baseType As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean 650Public Function IsOrDerivedFromWellKnownClass(derivedType As TypeSymbol, wellKnownBaseType As WellKnownType, compilation As VisualBasicCompilation, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean 662Public Function IsCompatibleWithGenericIEnumerableOfType(type As TypeSymbol, typeArgument As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean 710Public Function IsOrImplementsIEnumerableOfXElement(type As TypeSymbol, compilation As VisualBasicCompilation, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean 716Public Function IsBaseTypeOrInterfaceOf(superType As TypeSymbol, subType As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean 732Friend Function IsValidTypeForConstField(fieldType As TypeSymbol) As Boolean 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 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 766Friend Function ReferencesMethodsTypeParameter(this As TypeSymbol, method As MethodSymbol) As Boolean 771Private ReadOnly s_isMethodTypeParameterFunc As Func(Of TypeSymbol, MethodSymbol, Boolean) = AddressOf IsMethodTypeParameter 773Private Function IsMethodTypeParameter(type As TypeSymbol, method As MethodSymbol) As Boolean 779Public Function IsUnboundGenericType(this As TypeSymbol) As Boolean 785Friend Function IsOrRefersToTypeParameter(this As TypeSymbol) As Boolean 790Private ReadOnly s_isTypeParameterFunc As Func(Of TypeSymbol, Object, Boolean) = Function(type, arg) (type.TypeKind = TypeKind.TypeParameter) 796Friend Function ContainsTuple(type As TypeSymbol) As Boolean 800Private ReadOnly s_isTupleTypeFunc As Func(Of TypeSymbol, Object, Boolean) = Function(type, arg) type.IsTupleType 806Friend Function ContainsTupleNames(type As TypeSymbol) As Boolean 810Private ReadOnly s_hasTupleNamesFunc As Func(Of TypeSymbol, Object, Boolean) = Function(type, arg) Not type.TupleElementNames.IsDefault 820Friend Function VisitType(Of T)(type As TypeSymbol, predicate As Func(Of TypeSymbol, T, Boolean), arg As T) As TypeSymbol 824Dim current As TypeSymbol = type 906Public Function IsValidTypeForAttributeArgument(type As TypeSymbol, compilation As VisualBasicCompilation) As Boolean 920TypeSymbol.Equals(type, compilation.GetWellKnownType(WellKnownType.System_Type), TypeCompareKind.ConsiderEverything) ' don't call the version with diagnostics 924Public Function IsValidTypeForSwitchTable(type As TypeSymbol) As Boolean 934Public Function IsIntrinsicOrEnumType(type As TypeSymbol) As Boolean 943Public Function MarkCheckedIfNecessary(type As TypeSymbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As Boolean 945checkedTypes = New HashSet(Of TypeSymbol)() 953Friend Sub CheckTypeArguments(typeArguments As ImmutableArray(Of TypeSymbol), expectedCount As Integer) 974typeArguments As ImmutableArray(Of TypeSymbol), 976) As ImmutableArray(Of TypeSymbol) 985typeArguments As ImmutableArray(Of TypeSymbol), 987) As ImmutableArray(Of TypeSymbol) 992typeArguments As ImmutableArray(Of TypeSymbol), 995) As ImmutableArray(Of TypeSymbol) 1000Dim newTypeArguments As TypeSymbol() = Nothing 1002Dim typeArgument As TypeSymbol 1059Public Function ExpressionTargetDelegate(type As TypeSymbol, compilation As VisualBasicCompilation) As NamedTypeSymbol 1064If namedType.Arity = 1 AndAlso TypeSymbol.Equals(namedType.OriginalDefinition, compilation.GetWellKnownType(WellKnownType.System_Linq_Expressions_Expression_T), TypeCompareKind.ConsiderEverything) Then 1081Public Function DelegateOrExpressionDelegate(type As TypeSymbol, binder As Binder) As NamedTypeSymbol 1095Public Function DelegateOrExpressionDelegate(type As TypeSymbol, binder As Binder, ByRef wasExpression As Boolean) As NamedTypeSymbol 1110Public Function IsExpressionTree(type As TypeSymbol, binder As Binder) As Boolean 1115Public Function IsExtensibleInterfaceNoUseSiteDiagnostics(type As TypeSymbol) As Boolean 1120Public Function GetNativeCompilerVType(type As TypeSymbol) As String 1129Public Function IsVerifierReference(type As TypeSymbol) As Boolean 1138Public Function IsVerifierValue(type As TypeSymbol) As Boolean 1146Public Function IsPrimitiveType(t As TypeSymbol) As Boolean 1190Public Function GetAllTypeArguments(type As NamedTypeSymbol) As ImmutableArray(Of TypeSymbol) 1282Friend Function GetTypeRefWithAttributes(type As TypeSymbol, declaringCompilation As VisualBasicCompilation, typeRef As Cci.ITypeReference) As Cci.TypeReferenceWithAttributes 1296Friend Function IsWellKnownTypeIsExternalInit(typeSymbol As TypeSymbol) As Boolean 1302Friend Function IsWellKnownTypeLock(typeSymbol As TypeSymbol) As Boolean 1313Friend Function IsWellKnownTypeUnmanagedType(typeSymbol As TypeSymbol) As Boolean 1323Private Function IsWellKnownCompilerServicesTopLevelType(typeSymbol As TypeSymbol, name As String) As Boolean 1332Friend Function IsCompilerServicesTopLevelType(typeSymbol As TypeSymbol) As Boolean 1337Private Function IsContainedInNamespace(typeSymbol As TypeSymbol, outerNS As String, midNS As String, Optional innerNS As String = Nothing) As Boolean
Symbols\TypeWithModifiers.vb (7)
12Public ReadOnly Type As TypeSymbol 15Public Sub New(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier)) 21Public Sub New(type As TypeSymbol) 62Public Function [Is](other As TypeSymbol) As Boolean 63Return TypeSymbol.Equals(Me.Type, other, TypeCompareKind.ConsiderEverything) AndAlso Me.CustomModifiers.IsEmpty 67Public Overloads Function Equals(other As TypeSymbol) As Boolean 76Public Function AsTypeSymbolOnly() As TypeSymbol
Symbols\UnboundGenericType.vb (11)
113Friend MustOverride Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 173Friend Overrides ReadOnly Property CoClassType As TypeSymbol 287Public NotOverridable Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean 309Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 329Friend NotOverridable Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo 357Private _lazyTypeArguments As ImmutableArray(Of TypeSymbol) 367_lazyTypeArguments = ImmutableArray(Of TypeSymbol).Empty 441Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 445Dim arguments(OriginalDefinition.Arity - 1) As TypeSymbol 621Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 623Return StaticCast(Of TypeSymbol).From(_typeParameters)
Symbols\Wrapped\WrappedNamedTypeSymbol.vb (1)
132Friend Overrides ReadOnly Property CoClassType As TypeSymbol
Symbols\Wrapped\WrappedParameterSymbol.vb (1)
31Public Overrides ReadOnly Property Type As TypeSymbol