239 references to MemberRef
Microsoft.CodeAnalysis (7)
Emit\EditAndContinue\DeltaMetadataWriter.cs (6)
125_memberRefIndex = new InstanceAndStructuralReferenceIndex<ITypeMemberReference>(this, new MemberRefComparer(this), lastRowId: sizes[(int)TableIndex.MemberRef]); 154sizes[(int)TableIndex.MemberRef] = _memberRefIndex.Rows.Count; 1059var deletedMemberRefHandle = MetadataTokens.EntityHandle(TableIndex.MemberRef, 0); 1093PopulateEncLogTableRows(TableIndex.MemberRef, previousSizes, deltaSizes); 1255case TableIndex.MemberRef: 1347TableIndex.MemberRef,
PEWriter\MetadataWriter.cs (1)
2576metadata.SetCapacity(TableIndex.MemberRef, memberRefs.Count);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (136)
Emit\EditAndContinue\EditAndContinueStateMachineTests.cs (3)
539new CustomAttributeRow(Handle(0, TableIndex.MethodDef), Handle(0, TableIndex.MemberRef))); // row id 0 == delete 589new CustomAttributeRow(Handle(0, TableIndex.MethodDef), Handle(0, TableIndex.MemberRef)), // row id 0 == delete 590new CustomAttributeRow(Handle(0, TableIndex.MethodDef), Handle(0, TableIndex.MemberRef))); // row id 0 == delete
Emit\EditAndContinue\EditAndContinueTests.cs (133)
826Row(6, TableIndex.MemberRef, EditAndContinueOperation.Default), 837Handle(6, TableIndex.MemberRef), 869new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(1, TableIndex.MemberRef)), 870new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(2, TableIndex.MemberRef)), 871new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(3, TableIndex.MemberRef)), 1025new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(1, TableIndex.MemberRef)), 1026new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(2, TableIndex.MemberRef)), 1027new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(3, TableIndex.MemberRef)), 1153new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(1, TableIndex.MemberRef)), 1154new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(2, TableIndex.MemberRef)), 1155new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(3, TableIndex.MemberRef)), 1156new CustomAttributeRow(Handle(2, TableIndex.MethodDef), Handle(4, TableIndex.MemberRef))); 1179new CustomAttributeRow(Handle(0, TableIndex.MethodDef), Handle(0, TableIndex.MemberRef))); // Parent row id is 0, signifying a delete 1183Row(6, TableIndex.MemberRef, EditAndContinueOperation.Default), 1194Handle(6, TableIndex.MemberRef), 1216new CustomAttributeRow(Handle(2, TableIndex.MethodDef), Handle(7, TableIndex.MemberRef))); 1220Row(7, TableIndex.MemberRef, EditAndContinueOperation.Default), 1221Row(8, TableIndex.MemberRef, EditAndContinueOperation.Default), 1234Handle(7, TableIndex.MemberRef), 1235Handle(8, TableIndex.MemberRef), 1277new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(1, TableIndex.MemberRef)), 1278new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(2, TableIndex.MemberRef)), 1279new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(3, TableIndex.MemberRef))); 1302new CustomAttributeRow(Handle(2, TableIndex.MethodDef), Handle(5, TableIndex.MemberRef))); 1306Row(5, TableIndex.MemberRef, EditAndContinueOperation.Default), 1307Row(6, TableIndex.MemberRef, EditAndContinueOperation.Default), 1320Handle(5, TableIndex.MemberRef), 1321Handle(6, TableIndex.MemberRef), 1342new CustomAttributeRow(Handle(0, TableIndex.MethodDef), Handle(0, TableIndex.MemberRef))); // 0, delete 1374new CustomAttributeRow(Handle(2, TableIndex.MethodDef), Handle(7, TableIndex.MemberRef))); 1378Row(7, TableIndex.MemberRef, EditAndContinueOperation.Default), 1379Row(8, TableIndex.MemberRef, EditAndContinueOperation.Default), 1392Handle(7, TableIndex.MemberRef), 1393Handle(8, TableIndex.MemberRef), 1428new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(1, TableIndex.MemberRef)), 1429new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(2, TableIndex.MemberRef)), 1430new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(3, TableIndex.MemberRef)), 1492new CustomAttributeRow(Handle(0, TableIndex.MethodDef), Handle(0, TableIndex.MemberRef)), // F [A2] delete 1493new CustomAttributeRow(Handle(0, TableIndex.MethodDef), Handle(0, TableIndex.MemberRef)), // H [A5] delete 1505new CustomAttributeRow(Handle(0, TableIndex.MethodDef), Handle(0, TableIndex.MemberRef)), // F [A2] delete 1508new CustomAttributeRow(Handle(0, TableIndex.MethodDef), Handle(0, TableIndex.MemberRef)), // H [A5] delete 1559new CustomAttributeRow(Handle(0, TableIndex.MethodDef), Handle(0, TableIndex.MemberRef)), // G [A4] delete 1560new CustomAttributeRow(Handle(0, TableIndex.MethodDef), Handle(0, TableIndex.MemberRef)), // G [A3] delete 1571new CustomAttributeRow(Handle(0, TableIndex.MethodDef), Handle(0, TableIndex.MemberRef)), // G [A4] delete 1574new CustomAttributeRow(Handle(0, TableIndex.MethodDef), Handle(0, TableIndex.MemberRef)), // G [A3] delete 1616new CustomAttributeRow(Handle(0, TableIndex.MethodDef), Handle(0, TableIndex.MemberRef)), // H [A5] delete 1617new CustomAttributeRow(Handle(0, TableIndex.MethodDef), Handle(0, TableIndex.MemberRef)), // H [A6] delete 1618new CustomAttributeRow(Handle(0, TableIndex.MethodDef), Handle(0, TableIndex.MemberRef)), // H [A7] delete 1619new CustomAttributeRow(Handle(0, TableIndex.MethodDef), Handle(0, TableIndex.MemberRef)), // H [A8] delete 1649new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(1, TableIndex.MemberRef)), 1650new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(2, TableIndex.MemberRef)), 1651new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(3, TableIndex.MemberRef)), 1790new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(1, TableIndex.MemberRef)), 1791new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(2, TableIndex.MemberRef)), 1792new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(3, TableIndex.MemberRef)), 1860new CustomAttributeRow(Handle(0, TableIndex.MethodDef), Handle(0, TableIndex.MemberRef)), // F [A2] delete 1861new CustomAttributeRow(Handle(0, TableIndex.MethodDef), Handle(0, TableIndex.MemberRef)), // F [A3] delete 1902new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(1, TableIndex.MemberRef)), 1903new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(2, TableIndex.MemberRef)), 1904new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(3, TableIndex.MemberRef)), 1905new CustomAttributeRow(Handle(3, TableIndex.TypeDef), Handle(4, TableIndex.MemberRef))); 1926new CustomAttributeRow(Handle(5, TableIndex.MethodDef), Handle(8, TableIndex.MemberRef))); 2933Row(5, TableIndex.MemberRef, EditAndContinueOperation.Default), 2934Row(6, TableIndex.MemberRef, EditAndContinueOperation.Default), 2948Handle(5, TableIndex.MemberRef), 2949Handle(6, TableIndex.MemberRef), 2999new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(1, TableIndex.MemberRef)), 3000new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(2, TableIndex.MemberRef)), 3001new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(3, TableIndex.MemberRef))); 3026new CustomAttributeRow(Handle(1, TableIndex.Param), Handle(5, TableIndex.MemberRef))); 3030Row(5, TableIndex.MemberRef, EditAndContinueOperation.Default), 3051Handle(5, TableIndex.MemberRef), 3073new CustomAttributeRow(Handle(3, TableIndex.Param), Handle(6, TableIndex.MemberRef))); 3077Row(6, TableIndex.MemberRef, EditAndContinueOperation.Default), 3089Handle(6, TableIndex.MemberRef), 3209new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(1, TableIndex.MemberRef)), 3210new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(2, TableIndex.MemberRef)), 3211new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(3, TableIndex.MemberRef)), 3212new CustomAttributeRow(Handle(4, TableIndex.Field), Handle(4, TableIndex.MemberRef)), 3213new CustomAttributeRow(Handle(4, TableIndex.Field), Handle(5, TableIndex.MemberRef)), 3214new CustomAttributeRow(Handle(13, TableIndex.MethodDef), Handle(4, TableIndex.MemberRef)), 3653Row(5, TableIndex.MemberRef, EditAndContinueOperation.Default), 3654Row(6, TableIndex.MemberRef, EditAndContinueOperation.Default), 3711Row(7, TableIndex.MemberRef, EditAndContinueOperation.Default), 3712Row(8, TableIndex.MemberRef, EditAndContinueOperation.Default), 3713Row(9, TableIndex.MemberRef, EditAndContinueOperation.Default), 3769Handle(7, TableIndex.MemberRef), 3770Handle(8, TableIndex.MemberRef), 3771Handle(9, TableIndex.MemberRef), 3864Row(5, TableIndex.MemberRef, EditAndContinueOperation.Default), 3874Handle(5, TableIndex.MemberRef), 6377new CustomAttributeRow(Handle(1, TableIndex.MethodDef), Handle(4, TableIndex.MemberRef)), 6378new CustomAttributeRow(Handle(1, TableIndex.Field), Handle(4, TableIndex.MemberRef)), 6379new CustomAttributeRow(Handle(1, TableIndex.Field), Handle(5, TableIndex.MemberRef)), 6380new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(1, TableIndex.MemberRef)), 6381new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(2, TableIndex.MemberRef)), 6382new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(3, TableIndex.MemberRef)), 6383new CustomAttributeRow(Handle(2, TableIndex.MethodDef), Handle(4, TableIndex.MemberRef))); 6402new CustomAttributeRow(Handle(1, TableIndex.Event), Handle(10, TableIndex.MemberRef))); 6646Row(5, TableIndex.MemberRef, EditAndContinueOperation.Default), 6672Handle(5, TableIndex.MemberRef), 6807Row(5, TableIndex.MemberRef, EditAndContinueOperation.Default), 6808Row(6, TableIndex.MemberRef, EditAndContinueOperation.Default), 6809Row(7, TableIndex.MemberRef, EditAndContinueOperation.Default), 6810Row(8, TableIndex.MemberRef, EditAndContinueOperation.Default), 6835Handle(5, TableIndex.MemberRef), 6836Handle(6, TableIndex.MemberRef), 6837Handle(7, TableIndex.MemberRef), 6838Handle(8, TableIndex.MemberRef), 7117Row(5, TableIndex.MemberRef, EditAndContinueOperation.Default), 7124Handle(5, TableIndex.MemberRef), 7368new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(1, TableIndex.MemberRef)), 7369new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(2, TableIndex.MemberRef)), 7370new CustomAttributeRow(Handle(1, TableIndex.Assembly), Handle(3, TableIndex.MemberRef)), 7372new CustomAttributeRow(Handle(2, TableIndex.Field), Handle(4, TableIndex.MemberRef)), 7373new CustomAttributeRow(Handle(2, TableIndex.Field), Handle(5, TableIndex.MemberRef)), 7375new CustomAttributeRow(Handle(5, TableIndex.MethodDef), Handle(4, TableIndex.MemberRef)), 7376new CustomAttributeRow(Handle(6, TableIndex.MethodDef), Handle(4, TableIndex.MemberRef))); 7470new CustomAttributeRow(Handle(4, TableIndex.Field), Handle(11, TableIndex.MemberRef)), 7471new CustomAttributeRow(Handle(4, TableIndex.Field), Handle(12, TableIndex.MemberRef)), 7473new CustomAttributeRow(Handle(14, TableIndex.MethodDef), Handle(11, TableIndex.MemberRef)), 7474new CustomAttributeRow(Handle(15, TableIndex.MethodDef), Handle(11, TableIndex.MemberRef))); 7481new CustomAttributeRow(Handle(4, TableIndex.Field), Handle(11, TableIndex.MemberRef)), 7482new CustomAttributeRow(Handle(4, TableIndex.Field), Handle(12, TableIndex.MemberRef)), 7484new CustomAttributeRow(Handle(14, TableIndex.MethodDef), Handle(11, TableIndex.MemberRef)), 7485new CustomAttributeRow(Handle(15, TableIndex.MethodDef), Handle(11, TableIndex.MemberRef)), 7812Row(5, TableIndex.MemberRef, EditAndContinueOperation.Default), 7830Handle(5, TableIndex.MemberRef), 16027Row(7, TableIndex.MemberRef, EditAndContinueOperation.Default), 16028Row(8, TableIndex.MemberRef, EditAndContinueOperation.Default), 16041Handle(7, TableIndex.MemberRef), 16042Handle(8, TableIndex.MemberRef), 16839new CustomAttributeRow(Handle(5, TableIndex.TypeDef), Handle(6, TableIndex.MemberRef))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (82)
Emit\EditAndContinue\EditAndContinueStateMachineTests.vb (64)
67Row(17, TableIndex.MemberRef, EditAndContinueOperation.Default), 68Row(18, TableIndex.MemberRef, EditAndContinueOperation.Default), 69Row(19, TableIndex.MemberRef, EditAndContinueOperation.Default), 70Row(20, TableIndex.MemberRef, EditAndContinueOperation.Default), 71Row(21, TableIndex.MemberRef, EditAndContinueOperation.Default), 72Row(22, TableIndex.MemberRef, EditAndContinueOperation.Default), 73Row(23, TableIndex.MemberRef, EditAndContinueOperation.Default), 74Row(24, TableIndex.MemberRef, EditAndContinueOperation.Default), 75Row(25, TableIndex.MemberRef, EditAndContinueOperation.Default), 76Row(26, TableIndex.MemberRef, EditAndContinueOperation.Default), 77Row(27, TableIndex.MemberRef, EditAndContinueOperation.Default), 78Row(28, TableIndex.MemberRef, EditAndContinueOperation.Default), 79Row(29, TableIndex.MemberRef, EditAndContinueOperation.Default), 189Handle(17, TableIndex.MemberRef), 190Handle(18, TableIndex.MemberRef), 191Handle(19, TableIndex.MemberRef), 192Handle(20, TableIndex.MemberRef), 193Handle(21, TableIndex.MemberRef), 194Handle(22, TableIndex.MemberRef), 195Handle(23, TableIndex.MemberRef), 196Handle(24, TableIndex.MemberRef), 197Handle(25, TableIndex.MemberRef), 198Handle(26, TableIndex.MemberRef), 199Handle(27, TableIndex.MemberRef), 200Handle(28, TableIndex.MemberRef), 201Handle(29, TableIndex.MemberRef), 422Row(5, TableIndex.MemberRef, EditAndContinueOperation.Default), 423Row(6, TableIndex.MemberRef, EditAndContinueOperation.Default), 424Row(7, TableIndex.MemberRef, EditAndContinueOperation.Default), 425Row(8, TableIndex.MemberRef, EditAndContinueOperation.Default), 426Row(9, TableIndex.MemberRef, EditAndContinueOperation.Default), 427Row(10, TableIndex.MemberRef, EditAndContinueOperation.Default), 428Row(11, TableIndex.MemberRef, EditAndContinueOperation.Default), 429Row(12, TableIndex.MemberRef, EditAndContinueOperation.Default), 430Row(13, TableIndex.MemberRef, EditAndContinueOperation.Default), 431Row(14, TableIndex.MemberRef, EditAndContinueOperation.Default), 432Row(15, TableIndex.MemberRef, EditAndContinueOperation.Default), 433Row(16, TableIndex.MemberRef, EditAndContinueOperation.Default), 434Row(17, TableIndex.MemberRef, EditAndContinueOperation.Default), 435Row(18, TableIndex.MemberRef, EditAndContinueOperation.Default), 436Row(19, TableIndex.MemberRef, EditAndContinueOperation.Default), 437Row(20, TableIndex.MemberRef, EditAndContinueOperation.Default), 438Row(21, TableIndex.MemberRef, EditAndContinueOperation.Default), 439Row(22, TableIndex.MemberRef, EditAndContinueOperation.Default), 440Row(23, TableIndex.MemberRef, EditAndContinueOperation.Default), 515Handle(5, TableIndex.MemberRef), 516Handle(6, TableIndex.MemberRef), 517Handle(7, TableIndex.MemberRef), 518Handle(8, TableIndex.MemberRef), 519Handle(9, TableIndex.MemberRef), 520Handle(10, TableIndex.MemberRef), 521Handle(11, TableIndex.MemberRef), 522Handle(12, TableIndex.MemberRef), 523Handle(13, TableIndex.MemberRef), 524Handle(14, TableIndex.MemberRef), 525Handle(15, TableIndex.MemberRef), 526Handle(16, TableIndex.MemberRef), 527Handle(17, TableIndex.MemberRef), 528Handle(18, TableIndex.MemberRef), 529Handle(19, TableIndex.MemberRef), 530Handle(20, TableIndex.MemberRef), 531Handle(21, TableIndex.MemberRef), 532Handle(22, TableIndex.MemberRef), 533Handle(23, TableIndex.MemberRef),
Emit\EditAndContinue\EditAndContinueTests.vb (18)
206Row(7, TableIndex.MemberRef, EditAndContinueOperation.Default), 216Handle(7, TableIndex.MemberRef), 450Row(4, TableIndex.MemberRef, EditAndContinueOperation.Default), 451Row(5, TableIndex.MemberRef, EditAndContinueOperation.Default), 452Row(6, TableIndex.MemberRef, EditAndContinueOperation.Default), 472Handle(4, TableIndex.MemberRef), 473Handle(5, TableIndex.MemberRef), 474Handle(6, TableIndex.MemberRef), 516Row(7, TableIndex.MemberRef, EditAndContinueOperation.Default), 517Row(8, TableIndex.MemberRef, EditAndContinueOperation.Default), 533Handle(7, TableIndex.MemberRef), 534Handle(8, TableIndex.MemberRef), 583Row(5, TableIndex.MemberRef, EditAndContinueOperation.Default), 589Handle(5, TableIndex.MemberRef), 2094Row(8, TableIndex.MemberRef, EditAndContinueOperation.Default), 2095Row(9, TableIndex.MemberRef, EditAndContinueOperation.Default), 2106Handle(8, TableIndex.MemberRef), 2107Handle(9, TableIndex.MemberRef),
System.Reflection.Metadata (14)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (4)
154case TableIndex.MemberRef: SetTableCapacity(_memberRefTable, rowCount); break; 248case TableIndex.MemberRef : return _memberRefTable.Count; 320rowCounts[(int)TableIndex.MemberRef] = _memberRefTable.Count; 1682if (metadataSizes.IsPresent(TableIndex.MemberRef))
System\Reflection\Metadata\Ecma335\MetadataReaderExtensions.cs (2)
59TableIndex.MemberRef => reader.MemberRefTable.RowSize, 140TableIndex.MemberRef => reader.MemberRefTable.Block,
System\Reflection\Metadata\Ecma335\MetadataSizes.cs (5)
157CustomAttributeTypeCodedIndexIsSmall = IsReferenceSmall(3, TableIndex.MethodDef, TableIndex.MemberRef); 171TableIndex.MemberRef, 194MethodDefOrRefCodedIndexIsSmall = IsReferenceSmall(1, TableIndex.MethodDef, TableIndex.MemberRef); 215TableIndex.MemberRef, 282size += GetTableSize(TableIndex.MemberRef, memberRefParentCodedIndexSize + stringReferenceSize + blobReferenceSize);
System\Reflection\Metadata\Internal\MetadataFlags.cs (2)
28MemberRef = 1UL << TableIndex.MemberRef, 210internal const uint MemberRef = (uint)TableIndex.MemberRef;
System\Reflection\Metadata\MetadataReader.cs (1)
635this.MemberRefTable = new MemberRefTableReader(rowCounts[(int)TableIndex.MemberRef], memberRefParentRefSize, stringHeapRefSize, blobHeapRefSize, metadataTablesMemoryBlock, totalRequiredSize);