1 write to AdaptedNamedTypeSymbol
Microsoft.CodeAnalysis.CSharp (1)
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
1053
AdaptedNamedTypeSymbol
= underlyingNamedTypeSymbol;
88 references to AdaptedNamedTypeSymbol
Microsoft.CodeAnalysis.CSharp (88)
Emitter\Model\NamedTypeSymbolAdapter.cs (85)
44
get { return
AdaptedNamedTypeSymbol
.TypeKind == TypeKind.Enum; }
49
get { return
AdaptedNamedTypeSymbol
.IsValueType; }
65
if (
AdaptedNamedTypeSymbol
.IsDefinition)
67
return
AdaptedNamedTypeSymbol
.PrimitiveTypeCode;
78
PENamedTypeSymbol peNamedType =
AdaptedNamedTypeSymbol
as PENamedTypeSymbol;
99
if (!
AdaptedNamedTypeSymbol
.IsDefinition &&
100
AdaptedNamedTypeSymbol
.Arity > 0)
120
if (
AdaptedNamedTypeSymbol
.IsDefinition &&
121
(object)
AdaptedNamedTypeSymbol
.ContainingType == null)
136
if ((object)
AdaptedNamedTypeSymbol
.ContainingType == null &&
137
AdaptedNamedTypeSymbol
.IsDefinition &&
138
AdaptedNamedTypeSymbol
.ContainingModule == moduleBeingBuilt.SourceModule)
150
if ((object)
AdaptedNamedTypeSymbol
.ContainingType != null)
170
if ((object)
AdaptedNamedTypeSymbol
.ContainingType != null &&
171
AdaptedNamedTypeSymbol
.IsDefinition &&
172
AdaptedNamedTypeSymbol
.ContainingModule == moduleBeingBuilt.SourceModule)
186
if (!
AdaptedNamedTypeSymbol
.IsDefinition &&
187
(
AdaptedNamedTypeSymbol
.Arity == 0 || PEModuleBuilder.IsGenericType(
AdaptedNamedTypeSymbol
.ContainingType)))
189
Debug.Assert((object)
AdaptedNamedTypeSymbol
.ContainingType != null &&
190
PEModuleBuilder.IsGenericType(
AdaptedNamedTypeSymbol
.ContainingType));
209
if (
AdaptedNamedTypeSymbol
.IsDefinition && // can't be generic instantiation
210
AdaptedNamedTypeSymbol
.ContainingModule == moduleBeingBuilt.SourceModule) // must be declared in the module we are building
288
NamedTypeSymbol baseType =
AdaptedNamedTypeSymbol
.BaseTypeNoUseSiteDiagnostics;
290
if (
AdaptedNamedTypeSymbol
.IsScriptClass)
294
baseType =
AdaptedNamedTypeSymbol
.ContainingAssembly.GetSpecialType(Microsoft.CodeAnalysis.SpecialType.System_Object);
305
foreach (EventSymbol e in
AdaptedNamedTypeSymbol
.GetEventsToEmit())
323
foreach (var member in
AdaptedNamedTypeSymbol
.GetMembers())
341
if (
AdaptedNamedTypeSymbol
.IsInterface)
358
else if (method.MethodKind == MethodKind.Destructor &&
AdaptedNamedTypeSymbol
.SpecialType != SpecialType.System_Object)
365
TypeSymbol objectType =
AdaptedNamedTypeSymbol
.DeclaringCompilation.GetSpecialType(CodeAnalysis.SpecialType.System_Object);
378
if (
AdaptedNamedTypeSymbol
.IsInterface)
383
if (
AdaptedNamedTypeSymbol
is SourceMemberContainerTypeSymbol container)
401
var syntheticMethods = moduleBeingBuilt.GetSynthesizedMethods(
AdaptedNamedTypeSymbol
);
427
bool isStruct =
AdaptedNamedTypeSymbol
.IsStructType();
429
foreach (var f in
AdaptedNamedTypeSymbol
.GetFieldsToEmit())
439
IEnumerable<Cci.IFieldDefinition> generated = ((PEModuleBuilder)context.Module).GetSynthesizedFields(
AdaptedNamedTypeSymbol
);
459
foreach (var t in
AdaptedNamedTypeSymbol
.TypeParameters)
478
get { return (ushort)
AdaptedNamedTypeSymbol
.Arity; }
487
foreach (NamedTypeSymbol @interface in
AdaptedNamedTypeSymbol
.GetInterfacesToEmit())
498
declaringSymbol:
AdaptedNamedTypeSymbol
,
508
return
AdaptedNamedTypeSymbol
.IsMetadataAbstract;
518
switch (
AdaptedNamedTypeSymbol
.TypeKind)
526
foreach (var member in
AdaptedNamedTypeSymbol
.GetMembers(WellKnownMemberNames.StaticConstructorName))
543
return
AdaptedNamedTypeSymbol
.IsComImport;
552
return
AdaptedNamedTypeSymbol
.Arity != 0;
561
return
AdaptedNamedTypeSymbol
.IsInterface;
570
return
AdaptedNamedTypeSymbol
.IsDelegateType();
588
return
AdaptedNamedTypeSymbol
.IsSerializable;
597
return
AdaptedNamedTypeSymbol
.HasSpecialName;
606
return
AdaptedNamedTypeSymbol
.IsWindowsRuntimeImport;
615
return
AdaptedNamedTypeSymbol
.IsMetadataSealed;
625
bool alwaysIncludeConstructors = context.IncludePrivateMembers ||
AdaptedNamedTypeSymbol
.DeclaringCompilation.IsAttributeType(
AdaptedNamedTypeSymbol
);
627
foreach (var method in
AdaptedNamedTypeSymbol
.GetMethodsToEmit())
637
IEnumerable<Cci.IMethodDefinition> generated = ((PEModuleBuilder)context.Module).GetSynthesizedMethods(
AdaptedNamedTypeSymbol
);
655
foreach (NamedTypeSymbol type in
AdaptedNamedTypeSymbol
.GetTypeMembers()) // Ordered.
660
IEnumerable<Cci.INestedTypeDefinition> generated = ((PEModuleBuilder)context.Module).GetSynthesizedTypes(
AdaptedNamedTypeSymbol
);
675
foreach (PropertySymbol property in
AdaptedNamedTypeSymbol
.GetPropertiesToEmit())
686
IEnumerable<Cci.IPropertyDefinition> generated = ((PEModuleBuilder)context.Module).GetSynthesizedProperties(
AdaptedNamedTypeSymbol
);
705
return
AdaptedNamedTypeSymbol
.HasDeclarativeSecurity;
714
return
AdaptedNamedTypeSymbol
.GetSecurityInformation() ?? SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
723
var layout =
AdaptedNamedTypeSymbol
.Layout;
733
return
AdaptedNamedTypeSymbol
.Layout.Kind;
742
return (uint)
AdaptedNamedTypeSymbol
.Layout.Size;
751
return
AdaptedNamedTypeSymbol
.MarshallingCharSet;
764
return
AdaptedNamedTypeSymbol
.MangleName;
773
return
AdaptedNamedTypeSymbol
.GetFileLocalTypeMetadataNamePrefix();
782
string unsuffixedName =
AdaptedNamedTypeSymbol
.Name;
791
Debug.Assert(
AdaptedNamedTypeSymbol
.IsErrorType() ||
793
AdaptedNamedTypeSymbol
.OriginalDefinition is PENamedTypeSymbol, "type name contains dots: " + unsuffixedName);
804
return moduleBeingBuilt.Translate(
AdaptedNamedTypeSymbol
.ContainingModule, context.Diagnostics);
815
return
AdaptedNamedTypeSymbol
.ContainingNamespace.QualifiedName;
823
Debug.Assert((object)
AdaptedNamedTypeSymbol
.ContainingType == null &&
AdaptedNamedTypeSymbol
.ContainingModule is SourceModuleSymbol);
825
return
AdaptedNamedTypeSymbol
.MetadataVisibility == Cci.TypeMemberVisibility.Public;
837
return moduleBeingBuilt.Translate(
AdaptedNamedTypeSymbol
.ContainingType,
840
needDeclaration:
AdaptedNamedTypeSymbol
.IsDefinition);
847
Debug.Assert((object)
AdaptedNamedTypeSymbol
.ContainingType != null);
850
return
AdaptedNamedTypeSymbol
.ContainingType.GetCciAdapter();
858
Debug.Assert((object)
AdaptedNamedTypeSymbol
.ContainingType != null);
861
return
AdaptedNamedTypeSymbol
.MetadataVisibility;
871
var arguments =
AdaptedNamedTypeSymbol
.TypeArgumentsWithAnnotationsNoUseSiteDiagnostics;
897
return moduleBeingBuilt.Translate(
AdaptedNamedTypeSymbol
.OriginalDefinition, syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode,
1062
internal sealed override Symbol AdaptedSymbol =>
AdaptedNamedTypeSymbol
;
Emitter\NoPia\EmbeddedType.cs (3)
33
Debug.Assert(underlyingNamedType.
AdaptedNamedTypeSymbol
.IsDefinition);
34
Debug.Assert(underlyingNamedType.
AdaptedNamedTypeSymbol
.IsTopLevelType());
35
Debug.Assert(!underlyingNamedType.
AdaptedNamedTypeSymbol
.IsGenericType);