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