1 write to AdaptedNamedTypeSymbol
Microsoft.CodeAnalysis.VisualBasic (1)
Emit\NamedTypeSymbolAdapter.vb (1)
1010
AdaptedNamedTypeSymbol
= underlyingNamedTypeSymbol
132 references to AdaptedNamedTypeSymbol
Microsoft.CodeAnalysis.VisualBasic (132)
Emit\NamedTypeSymbolAdapter.vb (132)
42
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
43
Return
AdaptedNamedTypeSymbol
.TypeKind = TypeKind.Enum
49
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
50
Return
AdaptedNamedTypeSymbol
.IsValueType
55
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
62
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
64
If
AdaptedNamedTypeSymbol
.IsDefinition Then
65
Return
AdaptedNamedTypeSymbol
.PrimitiveTypeCode
73
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
74
Dim peNamedType As PENamedTypeSymbol = TryCast(
AdaptedNamedTypeSymbol
, PENamedTypeSymbol)
85
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
92
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
94
If Not
AdaptedNamedTypeSymbol
.IsDefinition AndAlso
AdaptedNamedTypeSymbol
.Arity > 0 AndAlso
AdaptedNamedTypeSymbol
.ConstructedFrom IsNot
AdaptedNamedTypeSymbol
Then
103
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
110
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
112
If
AdaptedNamedTypeSymbol
.IsDefinition AndAlso
AdaptedNamedTypeSymbol
.ContainingType Is Nothing Then
120
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
123
If
AdaptedNamedTypeSymbol
.ContainingType Is Nothing AndAlso
AdaptedNamedTypeSymbol
.IsDefinition AndAlso
AdaptedNamedTypeSymbol
.ContainingModule.Equals(moduleBeingBuilt.SourceModule) Then
131
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
132
If
AdaptedNamedTypeSymbol
.ContainingType IsNot Nothing Then
140
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
147
If
AdaptedNamedTypeSymbol
.ContainingType IsNot Nothing AndAlso
AdaptedNamedTypeSymbol
.IsDefinition AndAlso
AdaptedNamedTypeSymbol
.ContainingModule.Equals(moduleBeingBuilt.SourceModule) Then
155
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
157
If Not
AdaptedNamedTypeSymbol
.IsDefinition AndAlso (
AdaptedNamedTypeSymbol
.Arity = 0 OrElse
AdaptedNamedTypeSymbol
.ConstructedFrom Is
AdaptedNamedTypeSymbol
) Then
158
Debug.Assert(
AdaptedNamedTypeSymbol
.ContainingType IsNot Nothing AndAlso
AdaptedNamedTypeSymbol
.ContainingType.IsOrInGenericType())
166
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
176
If
AdaptedNamedTypeSymbol
.IsDefinition AndAlso
177
AdaptedNamedTypeSymbol
.ContainingModule.Equals(moduleBeingBuilt.SourceModule) Then
186
If Not
AdaptedNamedTypeSymbol
.IsDefinition Then
187
If
AdaptedNamedTypeSymbol
.Arity > 0 AndAlso
AdaptedNamedTypeSymbol
.ConstructedFrom IsNot
AdaptedNamedTypeSymbol
Then
196
Dim asDefinition As Boolean = (
AdaptedNamedTypeSymbol
.ContainingModule.Equals(moduleBeingBuilt.SourceModule))
197
If
AdaptedNamedTypeSymbol
.ContainingType Is Nothing Then
225
Dim layout =
AdaptedNamedTypeSymbol
.Layout
231
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
235
Dim baseType As NamedTypeSymbol =
AdaptedNamedTypeSymbol
.BaseTypeNoUseSiteDiagnostics
237
If
AdaptedNamedTypeSymbol
.TypeKind = TypeKind.Submission Then
240
baseType =
AdaptedNamedTypeSymbol
.ContainingAssembly.GetSpecialType(Microsoft.CodeAnalysis.SpecialType.System_Object)
251
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
258
For Each e As EventSymbol In
AdaptedNamedTypeSymbol
.GetEventsToEmit()
267
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
274
If
AdaptedNamedTypeSymbol
.IsInterface Then
279
Dim sourceNamedType = TryCast(
AdaptedNamedTypeSymbol
, SourceNamedTypeSymbol)
282
For Each member In
AdaptedNamedTypeSymbol
.GetMembersForCci()
288
Dim syntheticMethods = moduleBeingBuilt.GetSynthesizedMethods(
AdaptedNamedTypeSymbol
)
336
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
344
Dim isStruct =
AdaptedNamedTypeSymbol
.IsStructureType()
346
For Each field In
AdaptedNamedTypeSymbol
.GetFieldsToEmit()
353
Dim syntheticFields = DirectCast(context.Module, PEModuleBuilder).GetSynthesizedFields(
AdaptedNamedTypeSymbol
)
371
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
379
Return
AdaptedNamedTypeSymbol
.TypeParameters.Select(Function(t) t.GetCciAdapter())
388
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
401
Return CType(
AdaptedNamedTypeSymbol
.Arity, UShort)
407
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
413
Return
AdaptedNamedTypeSymbol
.HasDeclarativeSecurity
419
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
423
For Each [interface] In
AdaptedNamedTypeSymbol
.GetInterfacesToEmit()
429
Yield [interface].GetTypeRefWithAttributes(
AdaptedNamedTypeSymbol
.DeclaringCompilation, typeRef)
435
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
441
Return
AdaptedNamedTypeSymbol
.IsMetadataAbstract
447
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
455
Select Case
AdaptedNamedTypeSymbol
.TypeKind
462
Dim cctor =
AdaptedNamedTypeSymbol
.SharedConstructors.FirstOrDefault
465
Debug.Assert(
AdaptedNamedTypeSymbol
.SharedConstructors.Length = 1)
476
For Each member In
AdaptedNamedTypeSymbol
.GetMembers()
498
Dim sourceNamedType = TryCast(
AdaptedNamedTypeSymbol
, SourceMemberContainerTypeSymbol)
510
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
517
Return
AdaptedNamedTypeSymbol
.IsComImport
523
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
530
Return
AdaptedNamedTypeSymbol
.Arity <> 0
536
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
543
Return
AdaptedNamedTypeSymbol
.IsInterface
549
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
555
Return
AdaptedNamedTypeSymbol
.IsDelegateType()
561
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
574
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
581
Return
AdaptedNamedTypeSymbol
.IsSerializable
587
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
594
Return
AdaptedNamedTypeSymbol
.HasSpecialName
600
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
607
Return
AdaptedNamedTypeSymbol
.IsWindowsRuntimeImport
613
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
619
Return
AdaptedNamedTypeSymbol
.IsMetadataSealed
625
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
628
Return
AdaptedNamedTypeSymbol
.Layout.Kind
633
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
640
For Each method In
AdaptedNamedTypeSymbol
.GetMethodsToEmit()
647
Dim syntheticMethods = DirectCast(context.Module, PEModuleBuilder).GetSynthesizedMethods(
AdaptedNamedTypeSymbol
)
658
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
668
Dim nestedTypes =
AdaptedNamedTypeSymbol
.GetTypeMembers() ' Ordered.
674
If
AdaptedNamedTypeSymbol
.IsEmbedded Then
688
Dim syntheticNested = containingModule.GetSynthesizedTypes(
AdaptedNamedTypeSymbol
)
697
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
704
For Each [property] As PropertySymbol In
AdaptedNamedTypeSymbol
.GetPropertiesToEmit()
712
Dim syntheticProperties = DirectCast(context.Module, PEModuleBuilder).GetSynthesizedProperties(
AdaptedNamedTypeSymbol
)
724
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
731
Debug.Assert(
AdaptedNamedTypeSymbol
.HasDeclarativeSecurity)
732
Dim securityAttributes As IEnumerable(Of SecurityAttribute) =
AdaptedNamedTypeSymbol
.GetSecurityInformation()
740
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
743
Return CUInt(
AdaptedNamedTypeSymbol
.Layout.Size)
749
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
752
Return
AdaptedNamedTypeSymbol
.MarshallingCharSet
764
Return
AdaptedNamedTypeSymbol
.MangleName
777
Return
AdaptedNamedTypeSymbol
.Name
784
Return moduleBeingBuilt.Translate(
AdaptedNamedTypeSymbol
.ContainingModule, context.Diagnostics)
790
Return If(
AdaptedNamedTypeSymbol
.GetEmittedNamespaceName(),
AdaptedNamedTypeSymbol
.ContainingNamespace.ToDisplayString(SymbolDisplayFormat.QualifiedNameOnlyFormat))
798
Return
AdaptedNamedTypeSymbol
.MetadataVisibility = Cci.TypeMemberVisibility.Public
808
Return moduleBeingBuilt.Translate(
AdaptedNamedTypeSymbol
.ContainingType, syntaxNodeOpt:=DirectCast(context.SyntaxNode, VisualBasicSyntaxNode), diagnostics:=context.Diagnostics, needDeclaration:=
AdaptedNamedTypeSymbol
.IsDefinition)
815
Debug.Assert(
AdaptedNamedTypeSymbol
.ContainingType IsNot Nothing)
818
Return
AdaptedNamedTypeSymbol
.ContainingType.GetCciAdapter()
825
Debug.Assert(
AdaptedNamedTypeSymbol
.ContainingType IsNot Nothing)
828
Return
AdaptedNamedTypeSymbol
.MetadataVisibility
836
Dim hasModifiers =
AdaptedNamedTypeSymbol
.HasTypeArgumentsCustomModifiers
839
Dim arguments =
AdaptedNamedTypeSymbol
.TypeArgumentsNoUseSiteDiagnostics
844
Dim modifiers =
AdaptedNamedTypeSymbol
.GetTypeArgumentCustomModifiers(i)
864
Return moduleBeingBuilt.Translate(
AdaptedNamedTypeSymbol
.OriginalDefinition, syntaxNodeOpt:=DirectCast(context.SyntaxNode, VisualBasicSyntaxNode),
1015
Return
AdaptedNamedTypeSymbol