3 instantiations of FieldDefinitionHandle
System.Reflection.Metadata (3)
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (3)
949return new FieldDefinitionHandle(rowId); 969return new FieldDefinitionHandle(handle.RowId); 979return new FieldDefinitionHandle(handle.RowId);
131 references to FieldDefinitionHandle
ILAssembler (4)
EntityRegistry.cs (4)
231builder.AddFieldLayout((FieldDefinitionHandle)fieldDef.Handle, fieldDef.Offset.Value); 236builder.AddFieldRelativeVirtualAddress((FieldDefinitionHandle)fieldDef.Handle, dataOffset); 460static FieldDefinitionHandle GetFieldHandleForList(IReadOnlyList<EntityBase> list, IReadOnlyList<EntityBase> listOwner, Func<EntityBase, IReadOnlyList<EntityBase>> getList, int ownerIndex) 461=> (FieldDefinitionHandle)GetHandleForList(list, listOwner, getList, ownerIndex, TableIndex.Field);
ILCompiler.Compiler (1)
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (1)
217foreach (FieldDefinitionHandle fieldHandle in typeDefinition.GetFields())
ILCompiler.ReadyToRun (4)
Compiler\DependencyAnalysis\ReadyToRun\CopiedMetadataBlobNode.cs (1)
97EcmaField fieldDesc = _sourceModule.GetField((FieldDefinitionHandle)fieldHandle);
Compiler\ReadyToRunMetadataFieldLayoutAlgorithm.cs (1)
361FieldDefinitionHandle fieldDefHandle = ((EcmaField)field.GetTypicalFieldDefinition()).Handle;
Compiler\ReadyToRunStandaloneMethodMetadata.cs (1)
179var fieldDefinition = metadataReader.GetFieldDefinition((FieldDefinitionHandle)handle);
src\runtime\src\coreclr\tools\Common\Compiler\GenericCycleDetection\GraphBuilder.cs (1)
217foreach (FieldDefinitionHandle fieldHandle in typeDefinition.GetFields())
ILCompiler.TypeSystem (10)
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaField.cs (3)
33private FieldDefinitionHandle _handle; 41internal EcmaField(EcmaType type, FieldDefinitionHandle handle) 88public FieldDefinitionHandle Handle
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaModule.cs (4)
111FieldDefinitionHandle fieldDefinitionHandle = (FieldDefinitionHandle)handle; 487public EcmaField GetField(FieldDefinitionHandle handle) 492internal EcmaField GetField(FieldDefinitionHandle handle, EcmaType owningType)
src\runtime\src\coreclr\tools\Common\TypeSystem\Ecma\EcmaType.cs (3)
439foreach (var handle in _typeDefinition.GetFields()) 453foreach (var handle in _typeDefinition.GetFields()) 468foreach (var handle in _typeDefinition.GetFields())
Microsoft.CodeAnalysis (19)
Emit\EditAndContinue\DeltaMetadataWriter.cs (2)
346protected override FieldDefinitionHandle GetFieldDefinitionHandle(IFieldDefinition def) 410protected override FieldDefinitionHandle GetFirstFieldDefinitionHandle(INamedTypeDefinition typeDef)
MetadataReader\MetadataDecoder.cs (4)
1830internal FieldInfo<TypeSymbol> DecodeFieldSignature(FieldDefinitionHandle fieldHandle) 2097protected abstract FieldSymbol FindFieldSymbolInType(TypeSymbol type, FieldDefinitionHandle fieldDef); 2205TypeDefinitionHandle typeDef = Module.FindContainingTypeOrThrow((FieldDefinitionHandle)token); 2298? FindFieldSymbolInType(container, (FieldDefinitionHandle)memberToken)
MetadataReader\ModuleExtensions.cs (1)
22public static bool ShouldImportField(this PEModule module, FieldDefinitionHandle field, MetadataImportOptions importOptions)
MetadataReader\PEModule.cs (8)
3386internal TypeDefinitionHandle FindContainingTypeOrThrow(FieldDefinitionHandle fieldDef) 3583public string GetFieldDefNameOrThrow(FieldDefinitionHandle fieldDef) 3589internal BlobHandle GetFieldSignatureOrThrow(FieldDefinitionHandle fieldDef) 3595public FieldAttributes GetFieldDefFlagsOrThrow(FieldDefinitionHandle fieldDef) 3602FieldDefinitionHandle fieldDef, 3629internal ConstantValue GetConstantFieldValue(FieldDefinitionHandle fieldDef) 3668MetadataReader.GetFieldDefinition((FieldDefinitionHandle)fieldOrParameterToken).GetMarshallingDescriptor() : 3714internal int? GetFieldOffset(FieldDefinitionHandle fieldDef)
PEWriter\FullMetadataWriter.cs (2)
161protected override FieldDefinitionHandle GetFieldDefinitionHandle(IFieldDefinition def) 219protected override FieldDefinitionHandle GetFirstFieldDefinitionHandle(INamedTypeDefinition typeDef)
PEWriter\MetadataWriter.cs (2)
203protected abstract FieldDefinitionHandle GetFieldDefinitionHandle(IFieldDefinition def); 266protected abstract FieldDefinitionHandle GetFirstFieldDefinitionHandle(INamedTypeDefinition typeDef);
Microsoft.CodeAnalysis.CSharp (15)
Symbols\Metadata\PE\MetadataDecoder.cs (1)
515protected override FieldSymbol FindFieldSymbolInType(TypeSymbol typeSymbol, FieldDefinitionHandle fieldDef)
Symbols\Metadata\PE\PEFieldSymbol.cs (4)
138private readonly FieldDefinitionHandle _handle; 159FieldDefinitionHandle fieldDef) 298internal FieldDefinitionHandle Handle 437private static FlowAnalysisAnnotations DecodeFlowAnalysisAttributes(PEModule module, FieldDefinitionHandle handle)
Symbols\Metadata\PE\PENamedTypeSymbol.cs (10)
1128foreach (var fieldDef in module.GetFieldsOfTypeOrThrow(_handle)) 1368var fieldDefs = ArrayBuilder<FieldDefinitionHandle>.GetInstance(); 1372foreach (var fieldDef in module.GetFieldsOfTypeOrThrow(_handle)) 1384foreach (var fieldDef in fieldDefs) 1405foreach (var fieldDef in fieldDefs) 1471var handleToFieldMap = new SmallDictionary<FieldDefinitionHandle, FieldSymbol>(); 1492foreach (var handle in this.ContainingPEModule.Module.GetFieldsOfTypeOrThrow(_handle)) 1659foreach (var fieldDef in module.GetFieldsOfTypeOrThrow(_handle)) 1743foreach (var fieldDef in module.GetFieldsOfTypeOrThrow(_handle)) 2534foreach (var fieldRid in module.GetFieldsOfTypeOrThrow(_handle))
Microsoft.CodeAnalysis.Features (2)
PdbSourceDocument\SymbolSourceDocumentFinder.cs (2)
27ProcessFieldDef((FieldDefinitionHandle)handle, dllReader, pdbReader, docList); 117private static void ProcessFieldDef(FieldDefinitionHandle fieldDefHandle, MetadataReader dllReader, MetadataReader pdbReader, HashSet<DocumentHandle> docList)
Microsoft.CodeAnalysis.VisualBasic (4)
Symbols\Metadata\PE\MetadataDecoder.vb (1)
446Protected Overrides Function FindFieldSymbolInType(typeSymbol As TypeSymbol, fieldDef As FieldDefinitionHandle) As FieldSymbol
Symbols\Metadata\PE\PEFieldSymbol.vb (3)
36Private ReadOnly _handle As FieldDefinitionHandle 52handle As FieldDefinitionHandle 456Friend ReadOnly Property Handle As FieldDefinitionHandle
Microsoft.Diagnostics.DataContractReader.Contracts (4)
Contracts\ManagedTypeSource_1.cs (1)
214foreach (FieldDefinitionHandle fieldHandle in typeDef.GetFields())
Contracts\RuntimeTypeSystem_1.cs (3)
1956foreach (FieldDefinitionHandle fieldDefHandle in md.GetTypeDefinition(typeDefHandle).GetFields()) 2022FieldDefinitionHandle fieldHandle = (FieldDefinitionHandle)MetadataTokens.Handle((int)token);
Microsoft.Diagnostics.DataContractReader.Legacy (8)
Dbi\DacDbiImpl.cs (2)
2959FieldDefinitionHandle fieldDefHandle = (FieldDefinitionHandle)MetadataTokens.Handle((int)memberDef);
MetaDataImportImpl.cs (4)
323foreach (FieldDefinitionHandle h in typeDef.GetFields()) 604FieldDefinitionHandle fieldHandle = MetadataTokens.FieldDefinitionHandle(GetRID(mb)); 877FieldDefinitionHandle fieldHandle = MetadataTokens.FieldDefinitionHandle(GetRID(tk)); 1256foreach (FieldDefinitionHandle fh in typeDef.GetFields())
SOSDacImpl.cs (2)
1090FieldDefinitionHandle fieldHandle = (FieldDefinitionHandle)MetadataTokens.Handle((int)token);
System.Reflection.Emit (4)
System\Reflection\Emit\FieldBuilderImpl.cs (1)
26internal FieldDefinitionHandle _handle;
System\Reflection\Emit\ModuleBuilderImpl.cs (3)
638FieldDefinitionHandle handle = AddFieldDefinition(field, 918private FieldDefinitionHandle AddFieldDefinition(FieldBuilderImpl field, BlobBuilder fieldSignature) => 965private void AddFieldLayout(FieldDefinitionHandle fieldHandle, int offset) =>
System.Reflection.Metadata (50)
System\Reflection\Metadata\Ecma335\CodedIndex.cs (4)
13/// <see cref="FieldDefinitionHandle"/>, 41/// <param name="handle"><see cref="ParameterHandle"/>, <see cref="FieldDefinitionHandle"/>, or <see cref="PropertyDefinitionHandle"/></param> 62/// <param name="handle"><see cref = "ParameterHandle" /> or <see cref="FieldDefinitionHandle"/></param> 140/// <see cref="FieldDefinitionHandle"/>,
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (9)
465FieldDefinitionHandle fieldList, 659/// <param name="parent"><see cref="ParameterHandle"/>, <see cref="FieldDefinitionHandle"/>, or <see cref="PropertyDefinitionHandle"/></param> 715/// <see cref="FieldDefinitionHandle"/>, 879public FieldDefinitionHandle AddFieldDefinition( 891return FieldDefinitionHandle.FromRowId(_fieldTable.Count); 903FieldDefinitionHandle field, 916/// <param name="parent"><see cref="ParameterHandle"/> or <see cref="FieldDefinitionHandle"/>.</param> 952public void AddFieldRelativeVirtualAddress(FieldDefinitionHandle field, int offset) 1372/// <see cref="FieldDefinitionHandle"/>,
System\Reflection\Metadata\Ecma335\MetadataTokens.cs (2)
390public static FieldDefinitionHandle FieldDefinitionHandle(int rowNumber) 392return Metadata.FieldDefinitionHandle.FromRowId(ToRowId(rowNumber));
System\Reflection\Metadata\Internal\Tables.cs (8)
308internal FieldDefinitionHandle GetFieldFor(int rowId) 311return FieldDefinitionHandle.FromRowId(this.Block.PeekReference(rowOffset + _FieldOffset, _IsFieldTableRowRefSizeSmall)); 349internal StringHandle GetName(FieldDefinitionHandle handle) 355internal FieldAttributes GetFlags(FieldDefinitionHandle handle) 361internal BlobHandle GetSignature(FieldDefinitionHandle handle) 1106internal int FindFieldLayoutRowId(FieldDefinitionHandle handle) 1125internal FieldDefinitionHandle GetField(int rowId) 1128return FieldDefinitionHandle.FromRowId(this.Block.PeekReference(rowOffset + _FieldOffset, _IsFieldTableRowRefSizeSmall));
System\Reflection\Metadata\MetadataReader.cs (3)
1223public FieldDefinition GetFieldDefinition(FieldDefinitionHandle handle) 1229private uint GetFieldDefTreatmentAndRowId(FieldDefinitionHandle handle) 1337internal TypeDefinitionHandle GetDeclaringType(FieldDefinitionHandle fieldDef)
System\Reflection\Metadata\MetadataReader.WinMD.cs (1)
541private uint CalculateFieldDefTreatmentAndRowId(FieldDefinitionHandle handle)
System\Reflection\Metadata\TypeSystem\Constant.cs (1)
56/// The parent handle (<see cref="ParameterHandle"/>, <see cref="FieldDefinitionHandle"/>, or <see cref="PropertyDefinitionHandle"/>).
System\Reflection\Metadata\TypeSystem\FieldDefinition.cs (2)
31private FieldDefinitionHandle Handle 33get { return FieldDefinitionHandle.FromRowId(RowId); }
System\Reflection\Metadata\TypeSystem\HandleCollections.TypeSystem.cs (7)
575public readonly struct FieldDefinitionHandleCollection : IReadOnlyCollection<FieldDefinitionHandle> 612IEnumerator<FieldDefinitionHandle> IEnumerable<FieldDefinitionHandle>.GetEnumerator() 622public struct Enumerator : IEnumerator<FieldDefinitionHandle>, IEnumerator 641public FieldDefinitionHandle Current 653return FieldDefinitionHandle.FromRowId((int)(_currentRowId & TokenTypeIds.RIDMask)); 658private FieldDefinitionHandle GetCurrentFieldIndirect()
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (13)
935public readonly struct FieldDefinitionHandle : IEquatable<FieldDefinitionHandle> 947internal static FieldDefinitionHandle FromRowId(int rowId) 952public static implicit operator Handle(FieldDefinitionHandle handle) 957public static implicit operator EntityHandle(FieldDefinitionHandle handle) 962public static explicit operator FieldDefinitionHandle(Handle handle) 972public static explicit operator FieldDefinitionHandle(EntityHandle handle) 992public static bool operator ==(FieldDefinitionHandle left, FieldDefinitionHandle right) 999return obj is FieldDefinitionHandle && ((FieldDefinitionHandle)obj)._rowId == _rowId; 1002public bool Equals(FieldDefinitionHandle other) 1012public static bool operator !=(FieldDefinitionHandle left, FieldDefinitionHandle right)
System.Reflection.MetadataLoadContext (6)
System\Reflection\TypeLoading\Fields\Ecma\EcmaField.cs (2)
18private readonly FieldDefinitionHandle _handle; 20internal EcmaField(RoInstantiationProviderType declaringType, FieldDefinitionHandle handle, Type reflectedType)
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (2)
28public static FieldDefinition GetFieldDefinition(this FieldDefinitionHandle handle, MetadataReader reader) => reader.GetFieldDefinition(handle); 66public static int GetToken(this FieldDefinitionHandle handle) => MetadataTokens.GetToken(handle);
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.BindingFlags.cs (1)
59foreach (FieldDefinitionHandle handle in TypeDefinition.GetFields())
System\Reflection\TypeLoading\Types\Ecma\EcmaDefinitionType.cs (1)
112foreach (FieldDefinitionHandle handle in TypeDefinition.GetFields())