413 references to MetadataTokens
Microsoft.Cci.Extensions (2)
Microsoft.CodeAnalysis (141)
Emit\EditAndContinue\DeltaMetadataWriter.cs (53)
145var sizes = new int[MetadataTokens.TableCount];
175addedOrChangedMethodsByIndex.Add(MetadataTokens.GetRowNumber(GetMethodDefinitionHandle(pair.Key)), pair.Value);
180var tableSizes = new int[MetadataTokens.TableCount];
284methods.Add(MetadataTokens.MethodDefinitionHandle(_methodDefs.GetRowId(def)));
317return MetadataTokens.EventDefinitionHandle(_eventDefs.GetRowId(def));
327return MetadataTokens.FieldDefinitionHandle(_fieldDefs.GetRowId(def));
338handle = MetadataTokens.TypeDefinitionHandle(rowId);
344return MetadataTokens.TypeDefinitionHandle(_typeDefs.GetRowId(def));
349return _typeDefs.GetDefinition(MetadataTokens.GetRowNumber(handle));
360handle = MetadataTokens.MethodDefinitionHandle(rowId);
365=> MetadataTokens.MethodDefinitionHandle(_methodDefs.GetRowId(def));
368=> _methodDefs.GetDefinition(MetadataTokens.GetRowNumber(index));
374=> MetadataTokens.PropertyDefinitionHandle(_propertyDefs.GetRowId(def));
380=> MetadataTokens.ParameterHandle(_parameterDefs.GetRowId(def));
411return MetadataTokens.AssemblyReferenceHandle(_assemblyRefIndex.GetOrAdd(identity));
421return MetadataTokens.ModuleReferenceHandle(_moduleRefIndex.GetOrAdd(reference));
431return MetadataTokens.MemberReferenceHandle(_memberRefIndex.GetOrAdd(reference));
441return MetadataTokens.MethodSpecificationHandle(_methodSpecIndex.GetOrAdd(reference));
455handle = MetadataTokens.TypeReferenceHandle(index);
461return MetadataTokens.TypeReferenceHandle(_typeRefIndex.GetOrAdd(reference));
471return MetadataTokens.TypeSpecificationHandle(_typeSpecIndex.GetOrAdd(reference));
481return MetadataTokens.StandaloneSignatureHandle(_standAloneSignatureIndex.GetOrAdd(blobIndex));
750if (_previousGeneration.OriginalMetadata.MetadataReader.GetTableRowCount(TableIndex.MethodDef) >= MetadataTokens.GetRowNumber(handle))
783_existingParameterDefs.Add(paramDef, MetadataTokens.GetRowNumber(param));
963int xOrdinal = MetadataTokens.GetRowNumber(_previousGeneration.OriginalMetadata.MetadataReader.GetCustomAttributes(x.parentHandle).FirstOrDefault());
964int yOrdinal = MetadataTokens.GetRowNumber(_previousGeneration.OriginalMetadata.MetadataReader.GetCustomAttributes(y.parentHandle).FirstOrDefault());
1002_customAttributeRowIds.Add(MetadataTokens.GetRowNumber(handle));
1057_ = MetadataTokens.TryGetTableIndex(parentHandle.Kind, out var parentTableIndex);
1058var deletedParentHandle = MetadataTokens.EntityHandle(parentTableIndex, 0);
1059var deletedMemberRefHandle = MetadataTokens.EntityHandle(TableIndex.MemberRef, 0);
1115entity: MetadataTokens.CustomAttributeHandle(rowId),
1144int typeRowId = MetadataTokens.GetRowNumber(GetTypeDefinitionHandle(member.ContainingTypeDefinition));
1148entity: MetadataTokens.Handle(mapTable, mapRowId),
1153entity: MetadataTokens.Handle(table, index.GetRowId(member)),
1174entity: MetadataTokens.Handle(tableIndex, index.GetRowId(member)),
1192entity: MetadataTokens.MethodDefinitionHandle(_methodDefs.GetRowId(methodDef)),
1196entity: MetadataTokens.ParameterHandle(parameterFirstId + i),
1204paramEncMapRows.Add(MetadataTokens.GetRowNumber(param));
1218entity: MetadataTokens.Handle(tableIndex, index.GetRowId(member)),
1233entity: MetadataTokens.Handle(tableIndex, firstRowId + i),
1402tokens.Add(MetadataTokens.Handle(tableIndex, firstRowId + i));
1411tokens.Add(MetadataTokens.Handle(tableIndex, index.GetRowId(member)));
1419tokens.Add(MetadataTokens.Handle(tableIndex, row));
1428declaringType: MetadataTokens.TypeDefinitionHandle(typeId),
1429eventList: MetadataTokens.EventDefinitionHandle(_eventMap.GetRowId(typeId)));
1438declaringType: MetadataTokens.TypeDefinitionHandle(typeId),
1439propertyList: MetadataTokens.PropertyDefinitionHandle(_propertyMap.GetRowId(typeId)));
1612index = MetadataTokens.GetRowNumber(handle);
1624index = MetadataTokens.GetRowNumber(handle);
1636index = MetadataTokens.GetRowNumber(handle);
1644index = MetadataTokens.GetRowNumber(deletedHandle);
1655index = MetadataTokens.GetRowNumber(handle);
1667index = MetadataTokens.GetRowNumber(handle);
Microsoft.CodeAnalysis.CSharp (8)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (15)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (14)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
Microsoft.CodeAnalysis.Debugging.Package (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (4)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver.UnitTests (1)
Microsoft.CodeAnalysis.Features (11)
Microsoft.CodeAnalysis.Features.Test.Utilities (3)
Microsoft.CodeAnalysis.Features.UnitTests (5)
Microsoft.CodeAnalysis.Test.Utilities (18)
Microsoft.CodeAnalysis.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic (8)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (26)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (5)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (6)
Microsoft.DotNet.Build.Tasks.Packaging (1)
Microsoft.DotNet.PackageTesting (2)
Microsoft.DotNet.SharedFramework.Sdk (2)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
Roslyn.Test.PdbUtilities (16)
SemanticSearch.BuildTask (5)
System.Diagnostics.StackTrace (1)
System.Reflection.Emit (36)
System\Reflection\Emit\ModuleBuilderImpl.cs (31)
133fieldList: MetadataTokens.FieldDefinitionHandle(1),
134methodList: MetadataTokens.MethodDefinitionHandle(1));
306field._handle = MetadataTokens.FieldDefinitionHandle(_nextFieldDefRowId++);
314method._handle = MetadataTokens.MethodDefinitionHandle(_nextMethodDefRowId++);
322property._handle = MetadataTokens.PropertyDefinitionHandle(_nextPropertyRowId++);
330eventBuilder._handle = MetadataTokens.EventDefinitionHandle(_nextEventRowId++);
338typeBuilder._handle = MetadataTokens.TypeDefinitionHandle(++_nextTypeDefRowId);
434spBlobBuilder.WriteCompressedInteger(MetadataTokens.GetRowNumber(localSignatureHandle));
443AddLocalScope(methodHandle, parentImport: default, MetadataTokens.LocalVariableHandle(_pdbBuilder.GetRowCount(TableIndex.LocalVariable) + 1), scope);
455spBlobBuilder.WriteCompressedInteger(MetadataTokens.GetRowNumber(localSignature));
456spBlobBuilder.WriteCompressedInteger(MetadataTokens.GetRowNumber(GetDocument(pair.Key)));
465spBlobBuilder.WriteCompressedInteger(MetadataTokens.GetRowNumber(GetDocument(pair.Key)));
518constantList: MetadataTokens.LocalConstantHandle(1), scope._startOffset, scope._endOffset - scope._startOffset);
524AddLocalScope(methodHandle, parentImport, MetadataTokens.LocalVariableHandle(_pdbBuilder.GetRowCount(TableIndex.LocalVariable) + 1), childScope);
564importBlob.WriteCompressedInteger(MetadataTokens.GetHeapOffset(_pdbBuilder.GetOrAddBlobUTF8(importNs)));
615pair.Value.WriteInt32(MetadataTokens.GetToken(GetMemberHandle(member)));
620pair.Value.WriteInt32(MetadataTokens.GetToken(GetMethodReference(pair2.Key, pair2.Value)));
920eventList: MetadataTokens.EventDefinitionHandle(firstEventToken));
925propertyList: MetadataTokens.PropertyDefinitionHandle(firstPropertyToken));
939fieldList: MetadataTokens.FieldDefinitionHandle(fieldToken),
940methodList: MetadataTokens.MethodDefinitionHandle(methodToken));
949parameterList: MetadataTokens.ParameterHandle(parameterToken));
1089return MetadataTokens.GetToken(handle);
1229public override int GetStringMetadataToken(string stringConstant) => MetadataTokens.GetToken(_metadataBuilder.GetOrAddUserString(stringConstant));
1268method._handle = MetadataTokens.MethodDefinitionHandle(_nextMethodDefRowId++);
1280field._handle = MetadataTokens.FieldDefinitionHandle(_nextFieldDefRowId++);
1296method._handle = MetadataTokens.MethodDefinitionHandle(_nextMethodDefRowId++);
1316field._handle = MetadataTokens.FieldDefinitionHandle(_nextFieldDefRowId++);
1361MetadataTokens.GetToken(_metadataBuilder.AddStandaloneSignature(_metadataBuilder.GetOrAddBlob(signature.GetSignature())));
1364MetadataTokens.GetToken(_metadataBuilder.AddStandaloneSignature(
1369MetadataTokens.GetToken(_metadataBuilder.AddStandaloneSignature(_metadataBuilder.GetOrAddBlob(
System.Reflection.Metadata (45)
System.Reflection.MetadataLoadContext (18)