1 write to AdaptedNamedTypeSymbol
Microsoft.CodeAnalysis.VisualBasic (1)
Emit\NamedTypeSymbolAdapter.vb (1)
1016
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
146
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
153
If
AdaptedNamedTypeSymbol
.ContainingType IsNot Nothing AndAlso
AdaptedNamedTypeSymbol
.IsDefinition AndAlso
AdaptedNamedTypeSymbol
.ContainingModule.Equals(moduleBeingBuilt.SourceModule) Then
161
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
163
If Not
AdaptedNamedTypeSymbol
.IsDefinition AndAlso (
AdaptedNamedTypeSymbol
.Arity = 0 OrElse
AdaptedNamedTypeSymbol
.ConstructedFrom Is
AdaptedNamedTypeSymbol
) Then
164
Debug.Assert(
AdaptedNamedTypeSymbol
.ContainingType IsNot Nothing AndAlso
AdaptedNamedTypeSymbol
.ContainingType.IsOrInGenericType())
172
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
182
If
AdaptedNamedTypeSymbol
.IsDefinition AndAlso
183
AdaptedNamedTypeSymbol
.ContainingModule.Equals(moduleBeingBuilt.SourceModule) Then
192
If Not
AdaptedNamedTypeSymbol
.IsDefinition Then
193
If
AdaptedNamedTypeSymbol
.Arity > 0 AndAlso
AdaptedNamedTypeSymbol
.ConstructedFrom IsNot
AdaptedNamedTypeSymbol
Then
202
Dim asDefinition As Boolean = (
AdaptedNamedTypeSymbol
.ContainingModule.Equals(moduleBeingBuilt.SourceModule))
203
If
AdaptedNamedTypeSymbol
.ContainingType Is Nothing Then
231
Dim layout =
AdaptedNamedTypeSymbol
.Layout
237
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
241
Dim baseType As NamedTypeSymbol =
AdaptedNamedTypeSymbol
.BaseTypeNoUseSiteDiagnostics
243
If
AdaptedNamedTypeSymbol
.TypeKind = TypeKind.Submission Then
246
baseType =
AdaptedNamedTypeSymbol
.ContainingAssembly.GetSpecialType(Microsoft.CodeAnalysis.SpecialType.System_Object)
257
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
264
For Each e As EventSymbol In
AdaptedNamedTypeSymbol
.GetEventsToEmit()
273
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
280
If
AdaptedNamedTypeSymbol
.IsInterface Then
285
Dim sourceNamedType = TryCast(
AdaptedNamedTypeSymbol
, SourceNamedTypeSymbol)
288
For Each member In
AdaptedNamedTypeSymbol
.GetMembersForCci()
294
Dim syntheticMethods = moduleBeingBuilt.GetSynthesizedMethods(
AdaptedNamedTypeSymbol
)
342
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
350
Dim isStruct =
AdaptedNamedTypeSymbol
.IsStructureType()
352
For Each field In
AdaptedNamedTypeSymbol
.GetFieldsToEmit()
359
Dim syntheticFields = DirectCast(context.Module, PEModuleBuilder).GetSynthesizedFields(
AdaptedNamedTypeSymbol
)
377
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
385
Return
AdaptedNamedTypeSymbol
.TypeParameters.Select(Function(t) t.GetCciAdapter())
394
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
407
Return CType(
AdaptedNamedTypeSymbol
.Arity, UShort)
413
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
419
Return
AdaptedNamedTypeSymbol
.HasDeclarativeSecurity
425
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
429
For Each [interface] In
AdaptedNamedTypeSymbol
.GetInterfacesToEmit()
435
Yield [interface].GetTypeRefWithAttributes(
AdaptedNamedTypeSymbol
.DeclaringCompilation, typeRef)
441
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
447
Return
AdaptedNamedTypeSymbol
.IsMetadataAbstract
453
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
461
Select Case
AdaptedNamedTypeSymbol
.TypeKind
468
Dim cctor =
AdaptedNamedTypeSymbol
.SharedConstructors.FirstOrDefault
471
Debug.Assert(
AdaptedNamedTypeSymbol
.SharedConstructors.Length = 1)
482
For Each member In
AdaptedNamedTypeSymbol
.GetMembers()
504
Dim sourceNamedType = TryCast(
AdaptedNamedTypeSymbol
, SourceMemberContainerTypeSymbol)
516
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
523
Return
AdaptedNamedTypeSymbol
.IsComImport
529
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
536
Return
AdaptedNamedTypeSymbol
.Arity <> 0
542
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
549
Return
AdaptedNamedTypeSymbol
.IsInterface
555
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
561
Return
AdaptedNamedTypeSymbol
.IsDelegateType()
567
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
580
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
587
Return
AdaptedNamedTypeSymbol
.IsSerializable
593
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
600
Return
AdaptedNamedTypeSymbol
.HasSpecialName
606
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
613
Return
AdaptedNamedTypeSymbol
.IsWindowsRuntimeImport
619
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
625
Return
AdaptedNamedTypeSymbol
.IsMetadataSealed
631
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
634
Return
AdaptedNamedTypeSymbol
.Layout.Kind
639
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
646
For Each method In
AdaptedNamedTypeSymbol
.GetMethodsToEmit()
653
Dim syntheticMethods = DirectCast(context.Module, PEModuleBuilder).GetSynthesizedMethods(
AdaptedNamedTypeSymbol
)
664
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
674
Dim nestedTypes =
AdaptedNamedTypeSymbol
.GetTypeMembers() ' Ordered.
680
If
AdaptedNamedTypeSymbol
.IsEmbedded Then
694
Dim syntheticNested = containingModule.GetSynthesizedTypes(
AdaptedNamedTypeSymbol
)
703
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
710
For Each [property] As PropertySymbol In
AdaptedNamedTypeSymbol
.GetPropertiesToEmit()
718
Dim syntheticProperties = DirectCast(context.Module, PEModuleBuilder).GetSynthesizedProperties(
AdaptedNamedTypeSymbol
)
730
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
737
Debug.Assert(
AdaptedNamedTypeSymbol
.HasDeclarativeSecurity)
738
Dim securityAttributes As IEnumerable(Of SecurityAttribute) =
AdaptedNamedTypeSymbol
.GetSecurityInformation()
746
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
749
Return CUInt(
AdaptedNamedTypeSymbol
.Layout.Size)
755
Debug.Assert(Not
AdaptedNamedTypeSymbol
.IsAnonymousType)
758
Return
AdaptedNamedTypeSymbol
.MarshallingCharSet
770
Return
AdaptedNamedTypeSymbol
.MangleName
783
Return
AdaptedNamedTypeSymbol
.Name
790
Return moduleBeingBuilt.Translate(
AdaptedNamedTypeSymbol
.ContainingModule, context.Diagnostics)
796
Return If(
AdaptedNamedTypeSymbol
.GetEmittedNamespaceName(),
AdaptedNamedTypeSymbol
.ContainingNamespace.ToDisplayString(SymbolDisplayFormat.QualifiedNameOnlyFormat))
804
Return
AdaptedNamedTypeSymbol
.MetadataVisibility = Cci.TypeMemberVisibility.Public
814
Return moduleBeingBuilt.Translate(
AdaptedNamedTypeSymbol
.ContainingType, syntaxNodeOpt:=DirectCast(context.SyntaxNode, VisualBasicSyntaxNode), diagnostics:=context.Diagnostics, needDeclaration:=
AdaptedNamedTypeSymbol
.IsDefinition)
821
Debug.Assert(
AdaptedNamedTypeSymbol
.ContainingType IsNot Nothing)
824
Return
AdaptedNamedTypeSymbol
.ContainingType.GetCciAdapter()
831
Debug.Assert(
AdaptedNamedTypeSymbol
.ContainingType IsNot Nothing)
834
Return
AdaptedNamedTypeSymbol
.MetadataVisibility
842
Dim hasModifiers =
AdaptedNamedTypeSymbol
.HasTypeArgumentsCustomModifiers
845
Dim arguments =
AdaptedNamedTypeSymbol
.TypeArgumentsNoUseSiteDiagnostics
850
Dim modifiers =
AdaptedNamedTypeSymbol
.GetTypeArgumentCustomModifiers(i)
870
Return moduleBeingBuilt.Translate(
AdaptedNamedTypeSymbol
.OriginalDefinition, syntaxNodeOpt:=DirectCast(context.SyntaxNode, VisualBasicSyntaxNode),
1021
Return
AdaptedNamedTypeSymbol