3 instantiations of ImportScopeHandle
System.Reflection.Metadata (3)
System\Reflection\Metadata\PortablePdb\Handles.Debug.cs (3)
451
return new
ImportScopeHandle
(rowId);
471
return new
ImportScopeHandle
(handle.RowId);
481
return new
ImportScopeHandle
(handle.RowId);
53 references to ImportScopeHandle
Microsoft.CodeAnalysis (11)
PEWriter\MetadataWriter.cs (1)
123
_scopeIndex = new Dictionary<IImportScope,
ImportScopeHandle
>(new ImportScopeEqualityComparer(context));
PEWriter\MetadataWriter.PortablePdb.cs (10)
55
private readonly Dictionary<IImportScope,
ImportScopeHandle
> _scopeIndex;
77
var
importScopeHandle = (bodyImportScope != null) ? GetImportScopeIndex(bodyImportScope, _scopeIndex) : default;
322
private static readonly
ImportScopeHandle
ModuleImportScopeHandle = MetadataTokens.ImportScopeHandle(1);
429
var
rid = _debugMetadataOpt.AddImportScope(
430
parentScope: default(
ImportScopeHandle
),
436
private
ImportScopeHandle
GetImportScopeIndex(IImportScope scope, Dictionary<IImportScope,
ImportScopeHandle
> scopeIndex)
438
ImportScopeHandle
scopeHandle;
446
var
parentScopeHandle = (parent != null) ? GetImportScopeIndex(scope.Parent, scopeIndex) : ModuleImportScopeHandle;
448
var
result = _debugMetadataOpt.AddImportScope(
System.Reflection.Emit (3)
System\Reflection\Emit\ModuleBuilderImpl.cs (3)
514
private void AddLocalScope(MethodDefinitionHandle methodHandle,
ImportScopeHandle
parentImport, LocalVariableHandle firstLocalVariableHandle, Scope scope)
553
private
ImportScopeHandle
GetImportScopeHandle(List<string>? importNamespaces,
ImportScopeHandle
parent)
System.Reflection.Metadata (38)
System\Reflection\Metadata\Ecma335\CodedIndex.cs (1)
165
/// <see cref="
ImportScopeHandle
"/>.
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (5)
1274
public LocalScopeHandle AddLocalScope(MethodDefinitionHandle method,
ImportScopeHandle
importScope, LocalVariableHandle variableList, LocalConstantHandle constantList, int startOffset, int length)
1338
public
ImportScopeHandle
AddImportScope(
ImportScopeHandle
parentScope, BlobHandle imports)
1346
return
ImportScopeHandle
.FromRowId(_importScopeTable.Count);
1397
/// <see cref="
ImportScopeHandle
"/>.
System\Reflection\Metadata\Ecma335\MetadataTokens.cs (2)
487
public static
ImportScopeHandle
ImportScopeHandle(int rowNumber)
489
return Metadata.
ImportScopeHandle
.FromRowId(ToRowId(rowNumber));
System\Reflection\Metadata\MetadataReader.cs (1)
1407
public ImportScope GetImportScope(
ImportScopeHandle
handle)
System\Reflection\Metadata\PortablePdb\HandleCollections.Debug.cs (6)
629
public readonly struct ImportScopeCollection : IReadOnlyCollection<
ImportScopeHandle
>
658
IEnumerator<
ImportScopeHandle
> IEnumerable<
ImportScopeHandle
>.GetEnumerator()
668
public struct Enumerator : IEnumerator<
ImportScopeHandle
>, IEnumerator
687
public
ImportScopeHandle
Current
692
return
ImportScopeHandle
.FromRowId((int)(_currentRowId & TokenTypeIds.RIDMask));
System\Reflection\Metadata\PortablePdb\Handles.Debug.cs (12)
437
public readonly struct ImportScopeHandle : IEquatable<
ImportScopeHandle
>
449
internal static
ImportScopeHandle
FromRowId(int rowId)
454
public static implicit operator Handle(
ImportScopeHandle
handle)
459
public static implicit operator EntityHandle(
ImportScopeHandle
handle)
464
public static explicit operator
ImportScopeHandle
(Handle handle)
474
public static explicit operator
ImportScopeHandle
(EntityHandle handle)
494
public static bool operator ==(
ImportScopeHandle
left,
ImportScopeHandle
right)
501
return obj is
ImportScopeHandle
ish && ish._rowId == _rowId;
504
public bool Equals(
ImportScopeHandle
other)
514
public static bool operator !=(
ImportScopeHandle
left,
ImportScopeHandle
right)
System\Reflection\Metadata\PortablePdb\ImportScope.cs (4)
19
internal ImportScope(MetadataReader reader,
ImportScopeHandle
handle)
25
private
ImportScopeHandle
Handle =>
ImportScopeHandle
.FromRowId(_rowId);
27
public
ImportScopeHandle
Parent => _reader.ImportScopeTable.GetParent(Handle);
System\Reflection\Metadata\PortablePdb\LocalScope.cs (1)
28
public
ImportScopeHandle
ImportScope => _reader.LocalScopeTable.GetImportScope(Handle);
System\Reflection\Metadata\PortablePdb\Tables.Debug.cs (6)
166
internal
ImportScopeHandle
GetImportScope(LocalScopeHandle handle)
169
return
ImportScopeHandle
.FromRowId(Block.PeekReference(rowOffset + _importScopeOffset, _isImportScopeRefSmall));
415
internal
ImportScopeHandle
GetParent(
ImportScopeHandle
handle)
418
return
ImportScopeHandle
.FromRowId(Block.PeekReference(rowOffset + ParentOffset, _isImportScopeRefSizeSmall));
421
internal BlobHandle GetImports(
ImportScopeHandle
handle)
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (1)
32
public static ImportScope GetImportScope(this
ImportScopeHandle
handle, MetadataReader reader) => reader.GetImportScope(handle);