255 references to Field
Microsoft.CodeAnalysis (7)
Emit\EditAndContinue\DeltaMetadataWriter.cs (5)
107
_fieldDefs = new DefinitionIndex<IFieldDefinition>(this.TryGetExistingFieldDefIndex, sizes[(int)TableIndex.
Field
]);
151
sizes[(int)TableIndex.
Field
] = _fieldDefs.GetAdded().Count;
1104
PopulateEncLogTableFieldsOrMethods(_fieldDefs, TableIndex.
Field
, EditAndContinueOperation.AddField);
1281
case TableIndex.
Field
:
1344
TableIndex.
Field
,
Emit\EditAndContinue\EmitBaseline.cs (1)
345
Debug.Assert(tableEntriesAdded[(int)TableIndex.
Field
] >= fieldsAdded.Count);
PEWriter\MetadataWriter.cs (1)
2368
metadata.SetCapacity(TableIndex.
Field
, fieldDefs.Count);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (163)
Emit\EditAndContinue\EditAndContinueClosureTests.cs (10)
94
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
96
Row(2, TableIndex.
Field
, EditAndContinueOperation.Default),
98
Row(3, TableIndex.
Field
, EditAndContinueOperation.Default),
100
Row(4, TableIndex.
Field
, EditAndContinueOperation.Default),
4766
Row(3, TableIndex.
Field
, EditAndContinueOperation.Default),
4768
Row(4, TableIndex.
Field
, EditAndContinueOperation.Default),
4785
Handle(3, TableIndex.
Field
),
4786
Handle(4, TableIndex.
Field
),
9498
Row(2, TableIndex.
Field
, EditAndContinueOperation.Default),
9500
Row(3, TableIndex.
Field
, EditAndContinueOperation.Default),
Emit\EditAndContinue\EditAndContinuePdbTests.cs (2)
164
Row(5, TableIndex.
Field
, EditAndContinueOperation.Default),
288
Row(6, TableIndex.
Field
, EditAndContinueOperation.Default),
Emit\EditAndContinue\EditAndContinueStateMachineTests.cs (29)
77
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
79
Row(2, TableIndex.
Field
, EditAndContinueOperation.Default),
81
Row(3, TableIndex.
Field
, EditAndContinueOperation.Default),
133
Handle(1, TableIndex.
Field
),
134
Handle(2, TableIndex.
Field
),
135
Handle(3, TableIndex.
Field
),
264
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
266
Row(2, TableIndex.
Field
, EditAndContinueOperation.Default),
268
Row(3, TableIndex.
Field
, EditAndContinueOperation.Default),
371
Row(2, TableIndex.
Field
, EditAndContinueOperation.Default),
373
Row(3, TableIndex.
Field
, EditAndContinueOperation.Default),
375
Row(4, TableIndex.
Field
, EditAndContinueOperation.Default),
472
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
474
Row(2, TableIndex.
Field
, EditAndContinueOperation.Default),
476
Row(3, TableIndex.
Field
, EditAndContinueOperation.Default),
478
Row(4, TableIndex.
Field
, EditAndContinueOperation.Default),
3794
Row(7, TableIndex.
Field
, EditAndContinueOperation.Default),
3903
Row(7, TableIndex.
Field
, EditAndContinueOperation.Default),
4009
Row(5, TableIndex.
Field
, EditAndContinueOperation.Default),
4123
Row(7, TableIndex.
Field
, EditAndContinueOperation.Default),
7483
Row(16, TableIndex.
Field
, EditAndContinueOperation.Default),
7594
Row(17, TableIndex.
Field
, EditAndContinueOperation.Default),
7596
Row(18, TableIndex.
Field
, EditAndContinueOperation.Default),
7705
Row(19, TableIndex.
Field
, EditAndContinueOperation.Default),
7707
Row(20, TableIndex.
Field
, EditAndContinueOperation.Default),
8269
Row(11, TableIndex.
Field
, EditAndContinueOperation.Default),
8411
Row(12, TableIndex.
Field
, EditAndContinueOperation.Default),
8588
Row(13, TableIndex.
Field
, EditAndContinueOperation.Default),
8590
Row(14, TableIndex.
Field
, EditAndContinueOperation.Default),
Emit\EditAndContinue\EditAndContinueTests.cs (122)
87
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
97
Handle(1, TableIndex.
Field
),
170
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
181
Handle(1, TableIndex.
Field
),
2368
Row(4, TableIndex.
Field
, EditAndContinueOperation.Default),
2379
Handle(4, TableIndex.
Field
),
3212
new CustomAttributeRow(Handle(4, TableIndex.
Field
), Handle(4, TableIndex.MemberRef)),
3213
new CustomAttributeRow(Handle(4, TableIndex.
Field
), Handle(5, TableIndex.MemberRef)),
3260
new CustomAttributeRow(Handle(2, TableIndex.
Field
), Handle(2, TableIndex.MethodDef)), // E.A
3261
new CustomAttributeRow(Handle(3, TableIndex.
Field
), Handle(4, TableIndex.MethodDef)), // _x
3277
Row(2, TableIndex.
Field
, EditAndContinueOperation.Default),
3278
Row(3, TableIndex.
Field
, EditAndContinueOperation.Default),
3295
Handle(2, TableIndex.
Field
),
3296
Handle(3, TableIndex.
Field
),
3349
new CustomAttributeRow(Handle(2, TableIndex.
Field
), Handle(8, TableIndex.MethodDef)), // E.A
3350
new CustomAttributeRow(Handle(3, TableIndex.
Field
), Handle(10, TableIndex.MethodDef)), // _x
3363
new CustomAttributeRow(Handle(2, TableIndex.
Field
), Handle(8, TableIndex.MethodDef)), // E.A
3364
new CustomAttributeRow(Handle(3, TableIndex.
Field
), Handle(10, TableIndex.MethodDef)), // _x
3374
Row(2, TableIndex.
Field
, EditAndContinueOperation.Default),
3375
Row(3, TableIndex.
Field
, EditAndContinueOperation.Default),
3392
Handle(2, TableIndex.
Field
),
3393
Handle(3, TableIndex.
Field
),
3725
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
3727
Row(2, TableIndex.
Field
, EditAndContinueOperation.Default),
3760
Handle(1, TableIndex.
Field
),
3761
Handle(2, TableIndex.
Field
),
3867
Row(2, TableIndex.
Field
, EditAndContinueOperation.Default),
3872
Handle(2, TableIndex.
Field
),
4031
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
4048
Handle(1, TableIndex.
Field
),
4100
Row(2, TableIndex.
Field
, EditAndContinueOperation.Default),
4111
Handle(2, TableIndex.
Field
),
4242
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
4253
Handle(1, TableIndex.
Field
),
4301
Row(2, TableIndex.
Field
, EditAndContinueOperation.Default),
4315
Handle(2, TableIndex.
Field
),
4391
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
4401
Handle(1, TableIndex.
Field
),
4529
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
4538
Handle(1, TableIndex.
Field
),
4670
Row(2, TableIndex.
Field
, EditAndContinueOperation.Default),
4672
Row(3, TableIndex.
Field
, EditAndContinueOperation.Default),
4696
Handle(2, TableIndex.
Field
),
4697
Handle(3, TableIndex.
Field
),
4875
Row(2, TableIndex.
Field
, EditAndContinueOperation.Default),
4877
Row(3, TableIndex.
Field
, EditAndContinueOperation.Default),
4901
Handle(2, TableIndex.
Field
),
4902
Handle(3, TableIndex.
Field
),
5075
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
5085
Handle(1, TableIndex.
Field
),
5159
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
5175
Handle(1, TableIndex.
Field
),
5456
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
5473
Handle(1, TableIndex.
Field
),
5510
Row(2, TableIndex.
Field
, EditAndContinueOperation.Default),
5527
Handle(2, TableIndex.
Field
),
5582
Row(2, TableIndex.
Field
, EditAndContinueOperation.Default),
5592
Handle(2, TableIndex.
Field
),
5669
Row(2, TableIndex.
Field
, EditAndContinueOperation.Default),
5671
Row(3, TableIndex.
Field
, EditAndContinueOperation.Default),
5695
Handle(2, TableIndex.
Field
),
5696
Handle(3, TableIndex.
Field
),
6162
Row(baseFieldCount + generation, TableIndex.
Field
, EditAndContinueOperation.Default),
6175
Handle(baseFieldCount + generation, TableIndex.
Field
),
6378
new CustomAttributeRow(Handle(1, TableIndex.
Field
), Handle(4, TableIndex.MemberRef)),
6379
new CustomAttributeRow(Handle(1, TableIndex.
Field
), Handle(5, TableIndex.MemberRef)),
6652
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
6667
Handle(1, TableIndex.
Field
),
7271
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
7365
new CustomAttributeRow(Handle(1, TableIndex.
Field
), Handle(2, TableIndex.MethodDef)),
7372
new CustomAttributeRow(Handle(2, TableIndex.
Field
), Handle(4, TableIndex.MemberRef)),
7373
new CustomAttributeRow(Handle(2, TableIndex.
Field
), Handle(5, TableIndex.MemberRef)),
7404
Row(3, TableIndex.
Field
, EditAndContinueOperation.Default),
7406
Row(4, TableIndex.
Field
, EditAndContinueOperation.Default),
7436
Handle(3, TableIndex.
Field
),
7437
Handle(4, TableIndex.
Field
),
7469
new CustomAttributeRow(Handle(3, TableIndex.
Field
), Handle(1, TableIndex.MethodDef)),
7470
new CustomAttributeRow(Handle(4, TableIndex.
Field
), Handle(11, TableIndex.MemberRef)),
7471
new CustomAttributeRow(Handle(4, TableIndex.
Field
), Handle(12, TableIndex.MemberRef)),
7480
new CustomAttributeRow(Handle(3, TableIndex.
Field
), Handle(1, TableIndex.MethodDef)),
7481
new CustomAttributeRow(Handle(4, TableIndex.
Field
), Handle(11, TableIndex.MemberRef)),
7482
new CustomAttributeRow(Handle(4, TableIndex.
Field
), Handle(12, TableIndex.MemberRef)),
7816
Row(3, TableIndex.
Field
, EditAndContinueOperation.Default),
7818
Row(4, TableIndex.
Field
, EditAndContinueOperation.Default),
7827
Handle(3, TableIndex.
Field
),
7828
Handle(4, TableIndex.
Field
),
12024
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
12034
Handle(1, TableIndex.
Field
),
15718
Row(3, TableIndex.
Field
, EditAndContinueOperation.Default),
15720
Row(4, TableIndex.
Field
, EditAndContinueOperation.Default),
15805
Row(5, TableIndex.
Field
, EditAndContinueOperation.Default),
15940
Row(4, TableIndex.
Field
, EditAndContinueOperation.Default),
16499
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
16509
Handle(1, TableIndex.
Field
),
16618
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
16628
Handle(1, TableIndex.
Field
),
16698
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
16707
Handle(1, TableIndex.
Field
),
16821
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
16831
Handle(1, TableIndex.
Field
),
17015
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
17025
Handle(1, TableIndex.
Field
),
17155
Row(3, TableIndex.
Field
, EditAndContinueOperation.Default),
17166
Handle(3, TableIndex.
Field
),
17232
Row(4, TableIndex.
Field
, EditAndContinueOperation.Default),
17241
Handle(4, TableIndex.
Field
),
17407
Row(3, TableIndex.
Field
, EditAndContinueOperation.Default),
17418
Handle(3, TableIndex.
Field
),
17581
Row(5, TableIndex.
Field
, EditAndContinueOperation.Default),
17594
Handle(5, TableIndex.
Field
),
17858
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
17870
Handle(1, TableIndex.
Field
),
18162
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
18175
Handle(1, TableIndex.
Field
),
18309
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
18323
Handle(1, TableIndex.
Field
),
18461
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
18477
Handle(1, TableIndex.
Field
),
19637
Row(3, TableIndex.
Field
, EditAndContinueOperation.Default),
19666
Handle(3, TableIndex.
Field
),
19708
Row(4, TableIndex.
Field
, EditAndContinueOperation.Default),
19737
Handle(4, TableIndex.
Field
),
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (63)
Emit\EditAndContinue\EditAndContinueClosureTests.vb (2)
67
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
448
Row(11, TableIndex.
Field
, EditAndContinueOperation.Default),
Emit\EditAndContinue\EditAndContinuePdbTests.vb (2)
167
Row(5, TableIndex.
Field
, EditAndContinueOperation.Default),
272
Row(6, TableIndex.
Field
, EditAndContinueOperation.Default),
Emit\EditAndContinue\EditAndContinueStateMachineTests.vb (42)
100
Row(5, TableIndex.
Field
, EditAndContinueOperation.Default),
102
Row(6, TableIndex.
Field
, EditAndContinueOperation.Default),
104
Row(7, TableIndex.
Field
, EditAndContinueOperation.Default),
106
Row(8, TableIndex.
Field
, EditAndContinueOperation.Default),
170
Handle(5, TableIndex.
Field
),
171
Handle(6, TableIndex.
Field
),
172
Handle(7, TableIndex.
Field
),
173
Handle(8, TableIndex.
Field
),
464
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
466
Row(2, TableIndex.
Field
, EditAndContinueOperation.Default),
468
Row(3, TableIndex.
Field
, EditAndContinueOperation.Default),
470
Row(4, TableIndex.
Field
, EditAndContinueOperation.Default),
505
Handle(1, TableIndex.
Field
),
506
Handle(2, TableIndex.
Field
),
507
Handle(3, TableIndex.
Field
),
508
Handle(4, TableIndex.
Field
),
755
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
757
Row(2, TableIndex.
Field
, EditAndContinueOperation.Default),
759
Row(3, TableIndex.
Field
, EditAndContinueOperation.Default),
761
Row(4, TableIndex.
Field
, EditAndContinueOperation.Default),
862
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
864
Row(2, TableIndex.
Field
, EditAndContinueOperation.Default),
866
Row(3, TableIndex.
Field
, EditAndContinueOperation.Default),
868
Row(4, TableIndex.
Field
, EditAndContinueOperation.Default),
1079
Row(16, TableIndex.
Field
, EditAndContinueOperation.Default),
3716
Row(8, TableIndex.
Field
, EditAndContinueOperation.Default),
3826
Row(8, TableIndex.
Field
, EditAndContinueOperation.Default),
3932
Row(6, TableIndex.
Field
, EditAndContinueOperation.Default),
4065
Row(8, TableIndex.
Field
, EditAndContinueOperation.Default),
4067
Row(9, TableIndex.
Field
, EditAndContinueOperation.Default),
6541
Row(7, TableIndex.
Field
, EditAndContinueOperation.Default),
6699
Row(7, TableIndex.
Field
, EditAndContinueOperation.Default),
6853
Row(6, TableIndex.
Field
, EditAndContinueOperation.Default),
7145
Row(19, TableIndex.
Field
, EditAndContinueOperation.Default),
7263
Row(20, TableIndex.
Field
, EditAndContinueOperation.Default),
7265
Row(21, TableIndex.
Field
, EditAndContinueOperation.Default),
7380
Row(22, TableIndex.
Field
, EditAndContinueOperation.Default),
7382
Row(23, TableIndex.
Field
, EditAndContinueOperation.Default),
7646
Row(14, TableIndex.
Field
, EditAndContinueOperation.Default),
7807
Row(15, TableIndex.
Field
, EditAndContinueOperation.Default),
7965
Row(16, TableIndex.
Field
, EditAndContinueOperation.Default),
7967
Row(17, TableIndex.
Field
, EditAndContinueOperation.Default),
Emit\EditAndContinue\EditAndContinueTests.vb (17)
1469
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
1633
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
2322
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default), ' HotReloadException.Code
2517
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
2645
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
5963
Row(4, TableIndex.
Field
, EditAndContinueOperation.Default),
5974
Handle(4, TableIndex.
Field
),
6072
Row(3, TableIndex.
Field
, EditAndContinueOperation.Default),
6082
Handle(3, TableIndex.
Field
),
6146
Row(4, TableIndex.
Field
, EditAndContinueOperation.Default),
6155
Handle(4, TableIndex.
Field
),
6323
Row(3, TableIndex.
Field
, EditAndContinueOperation.Default),
6332
Handle(3, TableIndex.
Field
),
6460
Row(5, TableIndex.
Field
, EditAndContinueOperation.Default),
6472
Handle(5, TableIndex.
Field
),
7270
Row(1, TableIndex.
Field
, EditAndContinueOperation.Default),
7279
Handle(1, TableIndex.
Field
),
SemanticSearch.BuildTask (2)
GenerateFilteredReferenceAssembliesTask.cs (2)
427
var tableOffset = metadataOffset + metadataReader.GetTableMetadataOffset(TableIndex.
Field
);
428
var tableRowSize = metadataReader.GetTableRowSize(TableIndex.
Field
);
System.Reflection.Metadata (20)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (4)
150
case TableIndex.
Field
: SetTableCapacity(_fieldTable, rowCount); break;
241
case TableIndex.
Field
: return _fieldTable.Count;
313
rowCounts[(int)TableIndex.
Field
] = _fieldTable.Count;
1662
if (metadataSizes.IsPresent(TableIndex.
Field
))
System\Reflection\Metadata\Ecma335\MetadataReaderExtensions.cs (2)
53
TableIndex.
Field
=> reader.FieldTable.RowSize,
134
TableIndex.
Field
=> reader.FieldTable.Block,
System\Reflection\Metadata\Ecma335\MetadataSizes.cs (7)
160
FieldDefReferenceIsSmall = IsReferenceSmall(0, TableIndex.
Field
);
162
HasConstantCodedIndexIsSmall = IsReferenceSmall(2, TableIndex.
Field
, TableIndex.Param, TableIndex.Property);
166
TableIndex.
Field
,
188
HasFieldMarshalCodedIndexIsSmall = IsReferenceSmall(1, TableIndex.
Field
, TableIndex.Param);
191
MemberForwardedCodedIndexIsSmall = IsReferenceSmall(1, TableIndex.
Field
, TableIndex.MethodDef);
210
TableIndex.
Field
,
276
size += GetTableSize(TableIndex.
Field
, 2 + stringReferenceSize + blobReferenceSize);
System\Reflection\Metadata\Internal\MetadataFlags.cs (2)
22
Field = 1UL << TableIndex.
Field
,
206
internal const uint FieldDef = (uint)TableIndex.
Field
;
System\Reflection\Metadata\MetadataReader.cs (5)
577
int fieldRefSizeSorted = GetReferenceSize(rowCounts, TableIndex.FieldPtr) > SmallIndexSize ? LargeIndexSize : GetReferenceSize(rowCounts, TableIndex.
Field
);
614
this.FieldPtrTable = new FieldPtrTableReader(rowCounts[(int)TableIndex.FieldPtr], GetReferenceSize(rowCounts, TableIndex.
Field
), metadataTablesMemoryBlock, totalRequiredSize);
617
this.FieldTable = new FieldTableReader(rowCounts[(int)TableIndex.
Field
], stringHeapRefSize, blobHeapRefSize, metadataTablesMemoryBlock, totalRequiredSize);
659
this.FieldLayoutTable = new FieldLayoutTableReader(rowCounts[(int)TableIndex.FieldLayout], IsDeclaredSorted(TableMask.FieldLayout), GetReferenceSize(rowCounts, TableIndex.
Field
), metadataTablesMemoryBlock, totalRequiredSize);
698
this.FieldRvaTable = new FieldRVATableReader(rowCounts[(int)TableIndex.FieldRva], IsDeclaredSorted(TableMask.FieldRva), GetReferenceSize(rowCounts, TableIndex.
Field
), metadataTablesMemoryBlock, totalRequiredSize);