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