3 implementations of INamespaceTypeDefinition
Microsoft.CodeAnalysis (3)
CodeGen\PrivateImplementationDetails.cs (1)
27internal sealed class PrivateImplementationDetails : DefaultTypeDef, Cci.INamespaceTypeDefinition
Emit\NoPia\CommonEmbeddedType.cs (1)
40internal abstract class CommonEmbeddedType : Cci.IEmbeddedDefinition, Cci.INamespaceTypeDefinition
PEWriter\RootModuleType.cs (1)
18internal class RootModuleType : INamespaceTypeDefinition
57 references to INamespaceTypeDefinition
Microsoft.CodeAnalysis (55)
CodeGen\PrivateImplementationDetails.cs (11)
94private ImmutableArray<Cci.INamespaceTypeDefinition> _orderedTopLevelTypes; 95private readonly ConcurrentDictionary<string, Cci.INamespaceTypeDefinition> _synthesizedTopLevelTypes = new ConcurrentDictionary<string, Cci.INamespaceTypeDefinition>(); 184_orderedTopLevelTypes = _synthesizedTopLevelTypes.OrderBy(kvp => kvp.Key).Select(kvp => (Cci.INamespaceTypeDefinition)kvp.Value).AsImmutable(); 460foreach (var type in _orderedTopLevelTypes) 485internal bool TryAddSynthesizedType(Cci.INamespaceTypeDefinition type) 492internal Cci.INamespaceTypeDefinition? GetSynthesizedType(string name) 494_synthesizedTopLevelTypes.TryGetValue(name, out var type); 498internal IEnumerable<Cci.INamespaceTypeDefinition> GetAdditionalTopLevelTypes() 529public override Cci.INamespaceTypeDefinition AsNamespaceTypeDefinition(EmitContext context) => this; 733Cci.INamespaceTypeDefinition containingType,
Emit\CommonPEModuleBuilder.cs (16)
179public abstract IEnumerable<Cci.INamespaceTypeDefinition> GetTopLevelTypeDefinitions(EmitContext context); 181public IEnumerable<Cci.INamespaceTypeDefinition> GetTopLevelTypeDefinitionsCore(EmitContext context) 183foreach (var typeDef in GetAnonymousTypeDefinitions(context)) 188foreach (var typeDef in GetAdditionalTopLevelTypeDefinitions(context)) 193foreach (var typeDef in GetEmbeddedTypeDefinitions(context)) 198foreach (var typeDef in GetTopLevelSourceTypeDefinitions(context)) 208foreach (var typeDef in privateImpl.GetAdditionalTopLevelTypes()) 222public abstract IEnumerable<Cci.INamespaceTypeDefinition> GetAdditionalTopLevelTypeDefinitions(EmitContext context); 227public abstract IEnumerable<Cci.INamespaceTypeDefinition> GetAnonymousTypeDefinitions(EmitContext context); 232public abstract IEnumerable<Cci.INamespaceTypeDefinition> GetEmbeddedTypeDefinitions(EmitContext context); 237public abstract IEnumerable<Cci.INamespaceTypeDefinition> GetTopLevelSourceTypeDefinitions(EmitContext context); 658public override IEnumerable<Cci.INamespaceTypeDefinition> GetTopLevelTypeDefinitions(EmitContext context) 690foreach (var typeDef in GetTopLevelTypeDefinitionsCore(context)) 699foreach (var embedded in EmbeddedTypesManagerOpt.GetTypes(context.Diagnostics, names)) 712static void AddTopLevelType(HashSet<string> names, Cci.INamespaceTypeDefinition type) 756private static void VisitTopLevelType(Cci.TypeReferenceIndexer noPiaIndexer, Cci.INamespaceTypeDefinition type)
Emit\EditAndContinue\DeletedSourceGenericParameter.cs (1)
65public INamespaceTypeDefinition? AsNamespaceTypeDefinition(EmitContext context)
Emit\EditAndContinue\DeletedSourceTypeDefinition.cs (1)
87public INamespaceTypeDefinition? AsNamespaceTypeDefinition(EmitContext context)
Emit\EditAndContinue\DeltaMetadataWriter.cs (2)
500foreach (var typeDef in context.Module.GetTopLevelTypeDefinitions(context)) 1881public override void Visit(INamespaceTypeDefinition namespaceTypeDefinition)
Emit\EditAndContinue\SymbolChanges.cs (2)
330public IEnumerable<INamespaceTypeDefinition> GetTopLevelSourceTypeDefinitions(EmitContext context) 334var namespaceTypeDef = (symbol.GetCciAdapter() as ITypeDefinition)?.AsNamespaceTypeDefinition(context);
Emit\ErrorType.cs (1)
129Cci.INamespaceTypeDefinition Cci.ITypeReference.AsNamespaceTypeDefinition(EmitContext context)
Emit\NoPia\CommonEmbeddedType.cs (2)
230bool Cci.INamespaceTypeDefinition.IsPublic 624Cci.INamespaceTypeDefinition Cci.ITypeReference.AsNamespaceTypeDefinition(EmitContext context)
Emit\NoPia\CommonEmbeddedTypeParameter.cs (1)
173Cci.INamespaceTypeDefinition Cci.ITypeReference.AsNamespaceTypeDefinition(EmitContext context)
Emit\NoPia\EmbeddedTypesManager.cs (8)
22public abstract ImmutableArray<Cci.INamespaceTypeDefinition> GetTypes(DiagnosticBag diagnostics, HashSet<string> namesOfTopLevelTypes); 91public override ImmutableArray<Cci.INamespaceTypeDefinition> GetTypes(DiagnosticBag diagnostics, HashSet<string> namesOfTopLevelTypes) 103Cci.INamespaceTypeDefinition prev = _frozen[0]; 108Cci.INamespaceTypeDefinition current = _frozen[i]; 134return StaticCast<Cci.INamespaceTypeDefinition>.From(_frozen); 139Cci.INamespaceTypeDefinition def = type; 178Cci.INamespaceTypeDefinition dx = x; 179Cci.INamespaceTypeDefinition dy = y;
NativePdbWriter\SymWriterMetadataProvider.cs (1)
50INamespaceTypeDefinition namespaceTypeDef;
PEWriter\InheritedTypeParameter.cs (2)
137public INamespaceTypeDefinition? AsNamespaceTypeDefinition(EmitContext context) 139return this as INamespaceTypeDefinition;
PEWriter\MetadataVisitor.cs (1)
383public virtual void Visit(INamespaceTypeDefinition namespaceTypeDefinition)
PEWriter\MetadataWriter.cs (3)
500foreach (INamespaceTypeDefinition typeDef in module.GetTopLevelTypeDefinitions(Context)) 1569INamespaceTypeDefinition namespaceTypeDef = typeDef.AsNamespaceTypeDefinition(context); 2773INamespaceTypeDefinition namespaceType = typeDef.AsNamespaceTypeDefinition(Context);
PEWriter\ModifiedTypeReference.cs (1)
104INamespaceTypeDefinition? ITypeReference.AsNamespaceTypeDefinition(EmitContext context)
PEWriter\RootModuleType.cs (1)
283INamespaceTypeDefinition ITypeReference.AsNamespaceTypeDefinition(EmitContext context)
PEWriter\Types.cs (1)
639INamespaceTypeDefinition? AsNamespaceTypeDefinition(EmitContext context);
Microsoft.CodeAnalysis.CSharp (2)
Emitter\Model\PEModuleBuilder.cs (2)
1928var typeAdapter = privateImplClass.GetSynthesizedType(typeName); 1951var typeAdapter = privateImplClass.GetSynthesizedType(typeName);