3 instantiations of NamespaceDefinitionHandle
System.Reflection.Metadata (3)
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (3)
2456
return new
NamespaceDefinitionHandle
((uint)stringHeapOffset);
2470
return new
NamespaceDefinitionHandle
(TokenTypeIds.VirtualBit | virtualIndex);
2487
return new
NamespaceDefinitionHandle
(
66 references to NamespaceDefinitionHandle
Microsoft.CodeAnalysis (8)
MetadataReader\PEModule.cs (8)
623
internal readonly
NamespaceDefinitionHandle
NamespaceHandle;
625
internal TypeDefToNamespace(TypeDefinitionHandle typeDef,
NamespaceDefinitionHandle
namespaceHandle)
742
var namespaceHandles = new Dictionary<
NamespaceDefinitionHandle
, ArrayBuilder<TypeDefinitionHandle>>(NamespaceHandleEqualityComparer.Singleton);
745
NamespaceDefinitionHandle
nsHandle = pair.NamespaceHandle;
777
private class NamespaceHandleEqualityComparer : IEqualityComparer<
NamespaceDefinitionHandle
>
785
public bool Equals(
NamespaceDefinitionHandle
x,
NamespaceDefinitionHandle
y)
790
public int GetHashCode(
NamespaceDefinitionHandle
obj)
Microsoft.CodeAnalysis.Workspaces (3)
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (3)
488
foreach (
var
child in namespaceDefinition.NamespaceDefinitions)
659
NamespaceDefinitionHandle
namespaceHandle,
840
MetadataReader reader,
NamespaceDefinitionHandle
namespaceHandle)
System.Reflection.Metadata (53)
System\Reflection\Metadata\Internal\NamespaceCache.cs (25)
15
private volatile Dictionary<
NamespaceDefinitionHandle
, NamespaceData>? _namespaceTable;
34
internal string GetFullName(
NamespaceDefinitionHandle
handle)
48
internal NamespaceData GetNamespaceData(
NamespaceDefinitionHandle
handle)
75
private StringHandle GetSimpleName(
NamespaceDefinitionHandle
fullNamespaceHandle, int segmentIndex = int.MaxValue)
114
var namespaceBuilderTable = new Dictionary<
NamespaceDefinitionHandle
, NamespaceDataBuilder>();
123
NamespaceDefinitionHandle
rootNamespace =
NamespaceDefinitionHandle
.FromFullNameOffset(0);
140
var namespaceTable = new Dictionary<
NamespaceDefinitionHandle
, NamespaceData>();
167
private static void MergeDuplicateNamespaces(Dictionary<
NamespaceDefinitionHandle
, NamespaceDataBuilder> table, out Dictionary<string, NamespaceDataBuilder> stringTable)
170
List<KeyValuePair<
NamespaceDefinitionHandle
, NamespaceDataBuilder>>? remaps = null;
181
remaps ??= new List<KeyValuePair<
NamespaceDefinitionHandle
, NamespaceDataBuilder>>();
182
remaps.Add(new KeyValuePair<
NamespaceDefinitionHandle
, NamespaceDataBuilder>(group.Key, existingRecord));
206
private NamespaceDataBuilder SynthesizeNamespaceData(string fullName,
NamespaceDefinitionHandle
realChild)
224
var
namespaceHandle =
NamespaceDefinitionHandle
.FromVirtualIndex(++_virtualNamespaceCounter);
325
private void PopulateTableWithTypeDefinitions(Dictionary<
NamespaceDefinitionHandle
, NamespaceDataBuilder> table)
337
NamespaceDefinitionHandle
namespaceHandle = _metadataReader.TypeDefTable.GetNamespaceDefinition(typeHandle);
357
private void PopulateTableWithExportedTypes(Dictionary<
NamespaceDefinitionHandle
, NamespaceDataBuilder> table)
369
NamespaceDefinitionHandle
namespaceHandle = exportedType.NamespaceDefinition;
412
public readonly
NamespaceDefinitionHandle
Handle;
415
public
NamespaceDefinitionHandle
Parent;
416
public ImmutableArray<
NamespaceDefinitionHandle
>.Builder? Namespaces;
422
public NamespaceDataBuilder(
NamespaceDefinitionHandle
handle, StringHandle name, string fullName)
427
Namespaces = ImmutableArray.CreateBuilder<
NamespaceDefinitionHandle
>();
460
Parent = default(
NamespaceDefinitionHandle
);
System\Reflection\Metadata\Internal\NamespaceData.cs (4)
12
public readonly
NamespaceDefinitionHandle
Parent;
13
public readonly ImmutableArray<
NamespaceDefinitionHandle
> NamespaceDefinitions;
20
NamespaceDefinitionHandle
parent,
21
ImmutableArray<
NamespaceDefinitionHandle
> namespaceDefinitions,
System\Reflection\Metadata\Internal\Tables.cs (4)
167
internal
NamespaceDefinitionHandle
GetNamespaceDefinition(TypeDefinitionHandle handle)
170
return
NamespaceDefinitionHandle
.FromFullNameOffset(this.Block.PeekHeapReference(rowOffset + _NamespaceOffset, _IsStringHeapRefSizeSmall));
2227
internal
NamespaceDefinitionHandle
GetTypeNamespace(int rowId)
2230
return
NamespaceDefinitionHandle
.FromFullNameOffset(this.Block.PeekHeapReference(rowOffset + _TypeNamespaceOffset, _IsStringHeapRefSizeSmall));
System\Reflection\Metadata\MetadataReader.cs (2)
1066
public string GetString(
NamespaceDefinitionHandle
handle)
1135
public NamespaceDefinition GetNamespaceDefinition(
NamespaceDefinitionHandle
handle)
System\Reflection\Metadata\MetadataStringComparer.cs (2)
73
public bool Equals(
NamespaceDefinitionHandle
handle, string value)
78
public bool Equals(
NamespaceDefinitionHandle
handle, string value, bool ignoreCase)
System\Reflection\Metadata\TypeSystem\ExportedType.cs (1)
61
public
NamespaceDefinitionHandle
NamespaceDefinition
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (11)
2433
public readonly struct NamespaceDefinitionHandle : IEquatable<
NamespaceDefinitionHandle
>
2454
internal static
NamespaceDefinitionHandle
FromFullNameOffset(int stringHeapOffset)
2459
internal static
NamespaceDefinitionHandle
FromVirtualIndex(uint virtualIndex)
2473
public static implicit operator Handle(
NamespaceDefinitionHandle
handle)
2480
public static explicit operator
NamespaceDefinitionHandle
(Handle handle)
2524
return obj is
NamespaceDefinitionHandle
ndh && Equals(ndh);
2527
public bool Equals(
NamespaceDefinitionHandle
other)
2537
public static bool operator ==(
NamespaceDefinitionHandle
left,
NamespaceDefinitionHandle
right)
2542
public static bool operator !=(
NamespaceDefinitionHandle
left,
NamespaceDefinitionHandle
right)
System\Reflection\Metadata\TypeSystem\NamespaceDefinition.cs (2)
31
public
NamespaceDefinitionHandle
Parent
44
public ImmutableArray<
NamespaceDefinitionHandle
> NamespaceDefinitions
System\Reflection\Metadata\TypeSystem\TypeDefinition.cs (2)
94
public
NamespaceDefinitionHandle
NamespaceDefinition
277
private
NamespaceDefinitionHandle
GetProjectedNamespace()
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (2)
47
public static NamespaceDefinition GetNamespaceDefinition(this
NamespaceDefinitionHandle
handle, MetadataReader reader) => reader.GetNamespaceDefinition(handle);
52
public static string GetString(this
NamespaceDefinitionHandle
handle, MetadataReader reader) => reader.GetString(handle);