3 implementations of INamespaceTypeDefinition
Microsoft.CodeAnalysis (3)
CodeGen\PrivateImplementationDetails.cs (1)
25internal 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
56 references to INamespaceTypeDefinition
Microsoft.CodeAnalysis (54)
CodeGen\PrivateImplementationDetails.cs (10)
90private ImmutableArray<Cci.INamespaceTypeDefinition> _orderedTopLevelTypes; 91private readonly ConcurrentDictionary<string, Cci.INamespaceTypeDefinition> _synthesizedTopLevelTypes = new ConcurrentDictionary<string, Cci.INamespaceTypeDefinition>(); 176_orderedTopLevelTypes = _synthesizedTopLevelTypes.OrderBy(kvp => kvp.Key).Select(kvp => (Cci.INamespaceTypeDefinition)kvp.Value).AsImmutable(); 367foreach (var type in _orderedTopLevelTypes) 392internal bool TryAddSynthesizedType(Cci.INamespaceTypeDefinition type) 399internal Cci.INamespaceTypeDefinition? GetSynthesizedType(string name) 401_synthesizedTopLevelTypes.TryGetValue(name, out var type); 405internal IEnumerable<Cci.INamespaceTypeDefinition> GetAdditionalTopLevelTypes() 436public override Cci.INamespaceTypeDefinition AsNamespaceTypeDefinition(EmitContext context) => this;
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()) 220public abstract IEnumerable<Cci.INamespaceTypeDefinition> GetAdditionalTopLevelTypeDefinitions(EmitContext context); 225public abstract IEnumerable<Cci.INamespaceTypeDefinition> GetAnonymousTypeDefinitions(EmitContext context); 230public abstract IEnumerable<Cci.INamespaceTypeDefinition> GetEmbeddedTypeDefinitions(EmitContext context); 235public abstract IEnumerable<Cci.INamespaceTypeDefinition> GetTopLevelSourceTypeDefinitions(EmitContext context); 656public override IEnumerable<Cci.INamespaceTypeDefinition> GetTopLevelTypeDefinitions(EmitContext context) 688foreach (var typeDef in GetTopLevelTypeDefinitionsCore(context)) 697foreach (var embedded in EmbeddedTypesManagerOpt.GetTypes(context.Diagnostics, names)) 710static void AddTopLevelType(HashSet<string> names, Cci.INamespaceTypeDefinition type) 754private 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);