25 references to TypeRef
ILAssembler (3)
EntityRegistry.cs (2)
181foreach (TypeReferenceEntity type in GetSeenEntities(TableIndex.TypeRef)) 701scope = GetOrCreateEntity((scope, typeName.Namespace, typeName.Name), TableIndex.TypeRef, _seenTypeRefs, value => new TypeReferenceEntity(scope, value.Namespace, value.Name), typeRef =>
GrammarVisitor.cs (1)
5506tableStreamSize += rowCounts[(int)TableIndex.TypeRef] * 6; // 2+2+2
Microsoft.CodeAnalysis (6)
Emit\EditAndContinue\DeltaMetadataWriter.cs (5)
124_typeRefIndex = new TypeReferenceIndex(this, lastRowId: sizes[(int)TableIndex.TypeRef]); 169sizes[(int)TableIndex.TypeRef] = _typeRefIndex.Rows.Count; 1159PopulateEncLogTableRows(TableIndex.TypeRef, previousSizes, deltaSizes); 1317case TableIndex.TypeRef: 1406TableIndex.TypeRef,
PEWriter\MetadataWriter.cs (1)
2878metadata.SetCapacity(TableIndex.TypeRef, typeRefs.Count);
System.Reflection.Metadata (15)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (4)
148case TableIndex.TypeRef: SetTableCapacity(_typeRefTable, rowCount); break; 261case TableIndex.TypeRef : return _typeRefTable.Count; 333rowCounts[(int)TableIndex.TypeRef] = _typeRefTable.Count; 1652if (metadataSizes.IsPresent(TableIndex.TypeRef))
System\Reflection\Metadata\Ecma335\MetadataReaderExtensions.cs (2)
50TableIndex.TypeRef => reader.TypeRefTable.RowSize, 131TableIndex.TypeRef => reader.TypeRefTable.Block,
System\Reflection\Metadata\Ecma335\MetadataSizes.cs (6)
168TableIndex.TypeRef, 193MemberRefParentCodedIndexIsSmall = IsReferenceSmall(3, TableIndex.TypeDef, TableIndex.TypeRef, TableIndex.ModuleRef, TableIndex.MethodDef, TableIndex.TypeSpec); 199ResolutionScopeCodedIndexIsSmall = IsReferenceSmall(2, TableIndex.Module, TableIndex.ModuleRef, TableIndex.AssemblyRef, TableIndex.TypeRef); 201TypeDefOrRefCodedIndexIsSmall = IsReferenceSmall(2, TableIndex.TypeDef, TableIndex.TypeRef, TableIndex.TypeSpec); 212TableIndex.TypeRef, 274size += GetTableSize(TableIndex.TypeRef, resolutionScopeCodedIndexSize + stringReferenceSize + stringReferenceSize);
System\Reflection\Metadata\Internal\MetadataFlags.cs (2)
19TypeRef = 1UL << TableIndex.TypeRef, 204internal const uint TypeRef = (uint)TableIndex.TypeRef;
System\Reflection\Metadata\MetadataReader.cs (1)
608this.TypeRefTable = new TypeRefTableReader(rowCounts[(int)TableIndex.TypeRef], resolutionScopeRefSize, stringHeapRefSize, metadataTablesMemoryBlock, totalRequiredSize);
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.MetadataTables.cs (1)
41Interlocked.CompareExchange(ref field, CreateTable<RoDefinitionType>(TableIndex.TypeRef), null) ??