3 implementations of INamespaceTypeDefinition
Microsoft.CodeAnalysis (3)
CodeGen\PrivateImplementationDetails.cs (1)
25
internal sealed class PrivateImplementationDetails : DefaultTypeDef, Cci.
INamespaceTypeDefinition
Emit\NoPia\CommonEmbeddedType.cs (1)
40
internal abstract class CommonEmbeddedType : Cci.IEmbeddedDefinition, Cci.
INamespaceTypeDefinition
PEWriter\RootModuleType.cs (1)
18
internal class RootModuleType :
INamespaceTypeDefinition
56 references to INamespaceTypeDefinition
Microsoft.CodeAnalysis (54)
CodeGen\PrivateImplementationDetails.cs (10)
90
private ImmutableArray<Cci.
INamespaceTypeDefinition
> _orderedTopLevelTypes;
91
private 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();
367
foreach (
var
type in _orderedTopLevelTypes)
392
internal bool TryAddSynthesizedType(Cci.
INamespaceTypeDefinition
type)
399
internal Cci.
INamespaceTypeDefinition
? GetSynthesizedType(string name)
401
_synthesizedTopLevelTypes.TryGetValue(name, out
var
type);
405
internal IEnumerable<Cci.
INamespaceTypeDefinition
> GetAdditionalTopLevelTypes()
436
public override Cci.
INamespaceTypeDefinition
AsNamespaceTypeDefinition(EmitContext context) => this;
Emit\CommonPEModuleBuilder.cs (16)
179
public abstract IEnumerable<Cci.
INamespaceTypeDefinition
> GetTopLevelTypeDefinitions(EmitContext context);
181
public IEnumerable<Cci.
INamespaceTypeDefinition
> GetTopLevelTypeDefinitionsCore(EmitContext context)
183
foreach (
var
typeDef in GetAnonymousTypeDefinitions(context))
188
foreach (
var
typeDef in GetAdditionalTopLevelTypeDefinitions(context))
193
foreach (
var
typeDef in GetEmbeddedTypeDefinitions(context))
198
foreach (
var
typeDef in GetTopLevelSourceTypeDefinitions(context))
208
foreach (
var
typeDef in privateImpl.GetAdditionalTopLevelTypes())
220
public abstract IEnumerable<Cci.
INamespaceTypeDefinition
> GetAdditionalTopLevelTypeDefinitions(EmitContext context);
225
public abstract IEnumerable<Cci.
INamespaceTypeDefinition
> GetAnonymousTypeDefinitions(EmitContext context);
230
public abstract IEnumerable<Cci.
INamespaceTypeDefinition
> GetEmbeddedTypeDefinitions(EmitContext context);
235
public abstract IEnumerable<Cci.
INamespaceTypeDefinition
> GetTopLevelSourceTypeDefinitions(EmitContext context);
656
public override IEnumerable<Cci.
INamespaceTypeDefinition
> GetTopLevelTypeDefinitions(EmitContext context)
688
foreach (
var
typeDef in GetTopLevelTypeDefinitionsCore(context))
697
foreach (
var
embedded in EmbeddedTypesManagerOpt.GetTypes(context.Diagnostics, names))
710
static void AddTopLevelType(HashSet<string> names, Cci.
INamespaceTypeDefinition
type)
754
private static void VisitTopLevelType(Cci.TypeReferenceIndexer noPiaIndexer, Cci.
INamespaceTypeDefinition
type)
Emit\EditAndContinue\DeletedSourceGenericParameter.cs (1)
65
public
INamespaceTypeDefinition
? AsNamespaceTypeDefinition(EmitContext context)
Emit\EditAndContinue\DeletedSourceTypeDefinition.cs (1)
87
public
INamespaceTypeDefinition
? AsNamespaceTypeDefinition(EmitContext context)
Emit\EditAndContinue\DeltaMetadataWriter.cs (2)
500
foreach (
var
typeDef in context.Module.GetTopLevelTypeDefinitions(context))
1881
public override void Visit(
INamespaceTypeDefinition
namespaceTypeDefinition)
Emit\EditAndContinue\SymbolChanges.cs (2)
330
public IEnumerable<
INamespaceTypeDefinition
> GetTopLevelSourceTypeDefinitions(EmitContext context)
334
var
namespaceTypeDef = (symbol.GetCciAdapter() as ITypeDefinition)?.AsNamespaceTypeDefinition(context);
Emit\ErrorType.cs (1)
129
Cci.
INamespaceTypeDefinition
Cci.ITypeReference.AsNamespaceTypeDefinition(EmitContext context)
Emit\NoPia\CommonEmbeddedType.cs (2)
230
bool Cci.
INamespaceTypeDefinition
.IsPublic
624
Cci.
INamespaceTypeDefinition
Cci.ITypeReference.AsNamespaceTypeDefinition(EmitContext context)
Emit\NoPia\CommonEmbeddedTypeParameter.cs (1)
173
Cci.
INamespaceTypeDefinition
Cci.ITypeReference.AsNamespaceTypeDefinition(EmitContext context)
Emit\NoPia\EmbeddedTypesManager.cs (8)
22
public abstract ImmutableArray<Cci.
INamespaceTypeDefinition
> GetTypes(DiagnosticBag diagnostics, HashSet<string> namesOfTopLevelTypes);
91
public override ImmutableArray<Cci.
INamespaceTypeDefinition
> GetTypes(DiagnosticBag diagnostics, HashSet<string> namesOfTopLevelTypes)
103
Cci.
INamespaceTypeDefinition
prev = _frozen[0];
108
Cci.
INamespaceTypeDefinition
current = _frozen[i];
134
return StaticCast<Cci.
INamespaceTypeDefinition
>.From(_frozen);
139
Cci.
INamespaceTypeDefinition
def = type;
178
Cci.
INamespaceTypeDefinition
dx = x;
179
Cci.
INamespaceTypeDefinition
dy = y;
NativePdbWriter\SymWriterMetadataProvider.cs (1)
50
INamespaceTypeDefinition
namespaceTypeDef;
PEWriter\InheritedTypeParameter.cs (2)
137
public
INamespaceTypeDefinition
? AsNamespaceTypeDefinition(EmitContext context)
139
return this as
INamespaceTypeDefinition
;
PEWriter\MetadataVisitor.cs (1)
383
public virtual void Visit(
INamespaceTypeDefinition
namespaceTypeDefinition)
PEWriter\MetadataWriter.cs (3)
500
foreach (
INamespaceTypeDefinition
typeDef in module.GetTopLevelTypeDefinitions(Context))
1569
INamespaceTypeDefinition
namespaceTypeDef = typeDef.AsNamespaceTypeDefinition(context);
2773
INamespaceTypeDefinition
namespaceType = typeDef.AsNamespaceTypeDefinition(Context);
PEWriter\ModifiedTypeReference.cs (1)
104
INamespaceTypeDefinition
? ITypeReference.AsNamespaceTypeDefinition(EmitContext context)
PEWriter\RootModuleType.cs (1)
283
INamespaceTypeDefinition
ITypeReference.AsNamespaceTypeDefinition(EmitContext context)
PEWriter\Types.cs (1)
639
INamespaceTypeDefinition
? AsNamespaceTypeDefinition(EmitContext context);
Microsoft.CodeAnalysis.CSharp (2)
Emitter\Model\PEModuleBuilder.cs (2)
1928
var
typeAdapter = privateImplClass.GetSynthesizedType(typeName);
1951
var
typeAdapter = privateImplClass.GetSynthesizedType(typeName);