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