62 references to GetRowNumber
ILAssembler (4)
EntityRegistry.cs (4)
505return MetadataTokens.EntityHandle(tokenType, MetadataTokens.GetRowNumber(otherList[otherList.Count - 1].Handle) + 1); 673int rowNumber = MetadataTokens.GetRowNumber(entityHandle); 964var typeDef = (TypeDefinitionEntity)GetSeenEntities(TableIndex.TypeDef)[MetadataTokens.GetRowNumber(type.Handle) - 1]; 1150TypeSignatureHandle = MetadataTokens.TypeDefinitionHandle(MetadataTokens.GetRowNumber(realEntity));
ILCompiler.Compiler (2)
Compiler\ReachabilityInstrumentationFilter.cs (1)
64int rowNumber = MetadataTokens.GetRowNumber(ecmaMethod.Handle);
Compiler\ReachabilityInstrumentationProvider.cs (1)
59ref ExternSymbolMappedField field = ref fields[MetadataTokens.GetRowNumber(ecmaMethod.Handle)];
ILCompiler.ReadyToRun (12)
Compiler\DependencyAnalysis\ReadyToRun\EnclosingTypeMapNode.cs (1)
64builder.EmitUShort(checked((ushort)MetadataTokens.GetRowNumber(typeDefinition.GetDeclaringType())));
Compiler\DependencyAnalysis\ReadyToRun\InliningInfoNode.cs (8)
146int inlineeRid = MetadataTokens.GetRowNumber(ecmaInlinee.Handle); 190int aRid = MetadataTokens.GetRowNumber(a.Handle); 191int bRid = MetadataTokens.GetRowNumber(b.Handle); 205int inlinerRid = MetadataTokens.GetRowNumber(inliner.Handle); 273int aRid = MetadataTokens.GetRowNumber(a.Handle); 274int bRid = MetadataTokens.GetRowNumber(b.Handle); 306indexOfInlinee = (uint)MetadataTokens.GetRowNumber(ecmaInlinee.Handle); 340uint inlinerRid = (uint)MetadataTokens.GetRowNumber(inliner.Handle);
Compiler\DependencyAnalysis\ReadyToRun\TypesTableNode.cs (2)
56typesHashtable.Append(unchecked((uint)hashCode), section.Place(new UnsignedConstant(((uint)MetadataTokens.GetRowNumber(defTypeInfo.Handle) << 1) | 0))); 76typesHashtable.Append(unchecked((uint)hashCode), section.Place(new UnsignedConstant(((uint)MetadataTokens.GetRowNumber(expTypeInfo.Handle) << 1) | 1)));
Compiler\ReadyToRunStandaloneMethodMetadata.cs (1)
191blob.WriteCompressedInteger(MetadataTokens.GetRowNumber(MetadataTokens.EntityHandle(GetAlternateStreamToken(MetadataTokens.GetToken(methodSpecification.Method)))));
ILCompiler.TypeSystem (4)
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaModule.cs (4)
306ref TypeDefinitionHandle entry = ref buckets[MetadataTokens.GetRowNumber(typeHandle)]; 333entry = _typeDefinitionBuckets[MetadataTokens.GetRowNumber(entry)]; 357ref ExportedTypeHandle entry = ref buckets[MetadataTokens.GetRowNumber(typeHandle)]; 384entry = _exportedTypeBuckets[MetadataTokens.GetRowNumber(entry)];
Microsoft.CodeAnalysis (32)
Emit\EditAndContinue\DefinitionMap.cs (2)
299int methodIndex = MetadataTokens.GetRowNumber(methodHandle); 729var methodRowId = MetadataTokens.GetRowNumber(methodHandle);
Emit\EditAndContinue\DeltaMetadataWriter.cs (16)
195addedOrChangedMethodsByIndex.Add(MetadataTokens.GetRowNumber(GetMethodDefinitionHandle(pair.Key)), pair.Value); 370return _typeDefs.GetDefinition(MetadataTokens.GetRowNumber(handle)); 389=> _methodDefs.GetDefinition(MetadataTokens.GetRowNumber(index)); 814if (_previousGeneration.OriginalMetadata.MetadataReader.GetTableRowCount(TableIndex.MethodDef) >= MetadataTokens.GetRowNumber(handle)) 847_existingParameterDefs.Add(paramDef, MetadataTokens.GetRowNumber(param)); 1027int xOrdinal = MetadataTokens.GetRowNumber(_previousGeneration.OriginalMetadata.MetadataReader.GetCustomAttributes(x.parentHandle).FirstOrDefault()); 1028int yOrdinal = MetadataTokens.GetRowNumber(_previousGeneration.OriginalMetadata.MetadataReader.GetCustomAttributes(y.parentHandle).FirstOrDefault()); 1066CustomAttributeRowIds.Add(MetadataTokens.GetRowNumber(handle)); 1208int typeRowId = MetadataTokens.GetRowNumber(GetTypeDefinitionHandle(member.ContainingTypeDefinition)); 1268paramEncMapRows.Add(MetadataTokens.GetRowNumber(param)); 1674index = MetadataTokens.GetRowNumber(handle); 1686index = MetadataTokens.GetRowNumber(handle); 1698index = MetadataTokens.GetRowNumber(handle); 1706index = MetadataTokens.GetRowNumber(deletedHandle); 1717index = MetadataTokens.GetRowNumber(handle); 1729index = MetadataTokens.GetRowNumber(handle);
Emit\EditAndContinue\EmitBaseline.cs (1)
543int methodDefRow = MetadataTokens.GetRowNumber(methodImpl.MethodBody);
MetadataReader\PEModule.cs (1)
2703int rid = MetadataTokens.GetRowNumber(typeDef);
PEWriter\FullMetadataWriter.cs (2)
143return _typeDefs[MetadataTokens.GetRowNumber(handle)]; 186return _methodDefs[MetadataTokens.GetRowNumber(handle)];
PEWriter\MetadataWriter.cs (3)
3034var aggregateMethodRid = MetadataTokens.GetRowNumber(GetMethodDefinitionHandle(method)); 3325token = MetadataTokens.GetRowNumber(handle); 3333token = MetadataTokens.GetRowNumber(handle) + LiftedVariableBaseIndex;
PEWriter\MetadataWriter.PortablePdb.cs (7)
165MetadataTokens.LocalVariableHandle(MetadataTokens.GetRowNumber(handle) + 1); 168MetadataTokens.LocalConstantHandle(MetadataTokens.GetRowNumber(handle) + 1); 329writer.WriteCompressedInteger(MetadataTokens.GetRowNumber(GetOrAddAssemblyReferenceHandle(alias.Assembly))); 380writer.WriteCompressedInteger(MetadataTokens.GetRowNumber(GetAssemblyReferenceHandle(import.TargetAssemblyOpt))); 644writer.WriteCompressedInteger(MetadataTokens.GetRowNumber(localSignatureHandleOpt)); 662writer.WriteCompressedInteger(MetadataTokens.GetRowNumber(documentHandle)); 1025builder.WriteCompressedInteger(MetadataTokens.GetRowNumber(handle));
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\EditSession.cs (1)
138var highestEmittedTypeDefRow = emitResult.ChangedTypes.Max(t => MetadataTokens.GetRowNumber(t));
Microsoft.Diagnostics.DataContractReader.Legacy (3)
MetaDataImportImpl.cs (3)
1557*pmd = _paramToMethod.TryGetValue(MetadataTokens.GetRowNumber(paramHandle), out uint methodToken) ? methodToken : 0; 2089lookup[MetadataTokens.GetRowNumber(ih)] = typeToken; 2105lookup[MetadataTokens.GetRowNumber(ph)] = methodToken;
System.Reflection.Emit (4)
System\Reflection\Emit\ModuleBuilderImpl.cs (4)
435spBlobBuilder.WriteCompressedInteger(MetadataTokens.GetRowNumber(localSignatureHandle)); 456spBlobBuilder.WriteCompressedInteger(MetadataTokens.GetRowNumber(localSignature)); 457spBlobBuilder.WriteCompressedInteger(MetadataTokens.GetRowNumber(GetDocument(pair.Key))); 466spBlobBuilder.WriteCompressedInteger(MetadataTokens.GetRowNumber(GetDocument(pair.Key)));