1 write to AdaptedNamedTypeSymbol
Microsoft.CodeAnalysis.VisualBasic (1)
Emit\NamedTypeSymbolAdapter.vb (1)
1009AdaptedNamedTypeSymbol = underlyingNamedTypeSymbol
132 references to AdaptedNamedTypeSymbol
Microsoft.CodeAnalysis.VisualBasic (132)
Emit\NamedTypeSymbolAdapter.vb (132)
41Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 42Return AdaptedNamedTypeSymbol.TypeKind = TypeKind.Enum 48Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 49Return AdaptedNamedTypeSymbol.IsValueType 54Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 61Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 63If AdaptedNamedTypeSymbol.IsDefinition Then 64Return AdaptedNamedTypeSymbol.PrimitiveTypeCode 72Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 73Dim peNamedType As PENamedTypeSymbol = TryCast(AdaptedNamedTypeSymbol, PENamedTypeSymbol) 84Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 91Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 93If Not AdaptedNamedTypeSymbol.IsDefinition AndAlso AdaptedNamedTypeSymbol.Arity > 0 AndAlso AdaptedNamedTypeSymbol.ConstructedFrom IsNot AdaptedNamedTypeSymbol Then 102Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 109Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 111If AdaptedNamedTypeSymbol.IsDefinition AndAlso AdaptedNamedTypeSymbol.ContainingType Is Nothing Then 119Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 122If AdaptedNamedTypeSymbol.ContainingType Is Nothing AndAlso AdaptedNamedTypeSymbol.IsDefinition AndAlso AdaptedNamedTypeSymbol.ContainingModule.Equals(moduleBeingBuilt.SourceModule) Then 130Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 131If AdaptedNamedTypeSymbol.ContainingType IsNot Nothing Then 139Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 146If AdaptedNamedTypeSymbol.ContainingType IsNot Nothing AndAlso AdaptedNamedTypeSymbol.IsDefinition AndAlso AdaptedNamedTypeSymbol.ContainingModule.Equals(moduleBeingBuilt.SourceModule) Then 154Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 156If Not AdaptedNamedTypeSymbol.IsDefinition AndAlso (AdaptedNamedTypeSymbol.Arity = 0 OrElse AdaptedNamedTypeSymbol.ConstructedFrom Is AdaptedNamedTypeSymbol) Then 157Debug.Assert(AdaptedNamedTypeSymbol.ContainingType IsNot Nothing AndAlso AdaptedNamedTypeSymbol.ContainingType.IsOrInGenericType()) 165Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 175If AdaptedNamedTypeSymbol.IsDefinition AndAlso 176AdaptedNamedTypeSymbol.ContainingModule.Equals(moduleBeingBuilt.SourceModule) Then 185If Not AdaptedNamedTypeSymbol.IsDefinition Then 186If AdaptedNamedTypeSymbol.Arity > 0 AndAlso AdaptedNamedTypeSymbol.ConstructedFrom IsNot AdaptedNamedTypeSymbol Then 195Dim asDefinition As Boolean = (AdaptedNamedTypeSymbol.ContainingModule.Equals(moduleBeingBuilt.SourceModule)) 196If AdaptedNamedTypeSymbol.ContainingType Is Nothing Then 224Dim layout = AdaptedNamedTypeSymbol.Layout 230Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 234Dim baseType As NamedTypeSymbol = AdaptedNamedTypeSymbol.BaseTypeNoUseSiteDiagnostics 236If AdaptedNamedTypeSymbol.TypeKind = TypeKind.Submission Then 239baseType = AdaptedNamedTypeSymbol.ContainingAssembly.GetSpecialType(Microsoft.CodeAnalysis.SpecialType.System_Object) 250Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 257For Each e As EventSymbol In AdaptedNamedTypeSymbol.GetEventsToEmit() 266Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 273If AdaptedNamedTypeSymbol.IsInterface Then 278Dim sourceNamedType = TryCast(AdaptedNamedTypeSymbol, SourceNamedTypeSymbol) 281For Each member In AdaptedNamedTypeSymbol.GetMembersForCci() 287Dim syntheticMethods = moduleBeingBuilt.GetSynthesizedMethods(AdaptedNamedTypeSymbol) 335Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 343Dim isStruct = AdaptedNamedTypeSymbol.IsStructureType() 345For Each field In AdaptedNamedTypeSymbol.GetFieldsToEmit() 352Dim syntheticFields = DirectCast(context.Module, PEModuleBuilder).GetSynthesizedFields(AdaptedNamedTypeSymbol) 370Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 378Return AdaptedNamedTypeSymbol.TypeParameters.Select(Function(t) t.GetCciAdapter()) 387Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 400Return CType(AdaptedNamedTypeSymbol.Arity, UShort) 406Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 412Return AdaptedNamedTypeSymbol.HasDeclarativeSecurity 418Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 422For Each [interface] In AdaptedNamedTypeSymbol.GetInterfacesToEmit() 428Yield [interface].GetTypeRefWithAttributes(AdaptedNamedTypeSymbol.DeclaringCompilation, typeRef) 434Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 440Return AdaptedNamedTypeSymbol.IsMetadataAbstract 446Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 454Select Case AdaptedNamedTypeSymbol.TypeKind 461Dim cctor = AdaptedNamedTypeSymbol.SharedConstructors.FirstOrDefault 464Debug.Assert(AdaptedNamedTypeSymbol.SharedConstructors.Length = 1) 475For Each member In AdaptedNamedTypeSymbol.GetMembers() 497Dim sourceNamedType = TryCast(AdaptedNamedTypeSymbol, SourceMemberContainerTypeSymbol) 509Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 516Return AdaptedNamedTypeSymbol.IsComImport 522Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 529Return AdaptedNamedTypeSymbol.Arity <> 0 535Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 542Return AdaptedNamedTypeSymbol.IsInterface 548Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 554Return AdaptedNamedTypeSymbol.IsDelegateType() 560Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 573Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 580Return AdaptedNamedTypeSymbol.IsSerializable 586Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 593Return AdaptedNamedTypeSymbol.HasSpecialName 599Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 606Return AdaptedNamedTypeSymbol.IsWindowsRuntimeImport 612Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 618Return AdaptedNamedTypeSymbol.IsMetadataSealed 624Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 627Return AdaptedNamedTypeSymbol.Layout.Kind 632Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 639For Each method In AdaptedNamedTypeSymbol.GetMethodsToEmit() 646Dim syntheticMethods = DirectCast(context.Module, PEModuleBuilder).GetSynthesizedMethods(AdaptedNamedTypeSymbol) 657Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 667Dim nestedTypes = AdaptedNamedTypeSymbol.GetTypeMembers() ' Ordered. 673If AdaptedNamedTypeSymbol.IsEmbedded Then 687Dim syntheticNested = containingModule.GetSynthesizedTypes(AdaptedNamedTypeSymbol) 696Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 703For Each [property] As PropertySymbol In AdaptedNamedTypeSymbol.GetPropertiesToEmit() 711Dim syntheticProperties = DirectCast(context.Module, PEModuleBuilder).GetSynthesizedProperties(AdaptedNamedTypeSymbol) 723Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 730Debug.Assert(AdaptedNamedTypeSymbol.HasDeclarativeSecurity) 731Dim securityAttributes As IEnumerable(Of SecurityAttribute) = AdaptedNamedTypeSymbol.GetSecurityInformation() 739Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 742Return CUInt(AdaptedNamedTypeSymbol.Layout.Size) 748Debug.Assert(Not AdaptedNamedTypeSymbol.IsAnonymousType) 751Return AdaptedNamedTypeSymbol.MarshallingCharSet 763Return AdaptedNamedTypeSymbol.MangleName 776Return AdaptedNamedTypeSymbol.Name 783Return moduleBeingBuilt.Translate(AdaptedNamedTypeSymbol.ContainingModule, context.Diagnostics) 789Return If(AdaptedNamedTypeSymbol.GetEmittedNamespaceName(), AdaptedNamedTypeSymbol.ContainingNamespace.ToDisplayString(SymbolDisplayFormat.QualifiedNameOnlyFormat)) 797Return AdaptedNamedTypeSymbol.MetadataVisibility = Cci.TypeMemberVisibility.Public 807Return moduleBeingBuilt.Translate(AdaptedNamedTypeSymbol.ContainingType, syntaxNodeOpt:=DirectCast(context.SyntaxNode, VisualBasicSyntaxNode), diagnostics:=context.Diagnostics, needDeclaration:=AdaptedNamedTypeSymbol.IsDefinition) 814Debug.Assert(AdaptedNamedTypeSymbol.ContainingType IsNot Nothing) 817Return AdaptedNamedTypeSymbol.ContainingType.GetCciAdapter() 824Debug.Assert(AdaptedNamedTypeSymbol.ContainingType IsNot Nothing) 827Return AdaptedNamedTypeSymbol.MetadataVisibility 835Dim hasModifiers = AdaptedNamedTypeSymbol.HasTypeArgumentsCustomModifiers 838Dim arguments = AdaptedNamedTypeSymbol.TypeArgumentsNoUseSiteDiagnostics 843Dim modifiers = AdaptedNamedTypeSymbol.GetTypeArgumentCustomModifiers(i) 863Return moduleBeingBuilt.Translate(AdaptedNamedTypeSymbol.OriginalDefinition, syntaxNodeOpt:=DirectCast(context.SyntaxNode, VisualBasicSyntaxNode), 1014Return AdaptedNamedTypeSymbol