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