21 references to GetFieldDefinition
Microsoft.CodeAnalysis (8)
MetadataReader\PEModule.cs (8)
3351return MetadataReader.GetFieldDefinition(fieldDef).GetDeclaringType(); 3548return MetadataReader.GetString(MetadataReader.GetFieldDefinition(fieldDef).Name); 3554return MetadataReader.GetFieldDefinition(fieldDef).Signature; 3560return MetadataReader.GetFieldDefinition(fieldDef).Attributes; 3569FieldDefinition fieldRow = MetadataReader.GetFieldDefinition(fieldDef); 3598var constantHandle = MetadataReader.GetFieldDefinition(fieldDef).GetDefaultValue(); 3631MetadataReader.GetFieldDefinition((FieldDefinitionHandle)fieldOrParameterToken).GetMarshallingDescriptor() : 3681int offset = MetadataReader.GetFieldDefinition(fieldDef).GetOffset();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Attributes\AttributeTests_Nullable.cs (2)
4749var fieldDefs = typeDef.GetFields().Select(f => reader.GetFieldDefinition(f)).ToArray(); 4868var field = typeDef.GetFields().Select(f => reader.GetFieldDefinition(f)).Single(f => reader.StringComparer.Equals(f.Name, "Field"));
Attributes\AttributeTests_WellKnownAttributes.cs (2)
4742var field = metadataReader.GetFieldDefinition(fieldDef); 4850var field = metadataReader.GetFieldDefinition(fieldDef);
Microsoft.CodeAnalysis.Features (1)
PdbSourceDocument\SymbolSourceDocumentFinder.cs (1)
119var fieldDef = dllReader.GetFieldDefinition(fieldDefHandle);
Microsoft.CodeAnalysis.Test.Utilities (4)
Metadata\MetadataReaderUtils.cs (2)
143return reader.FieldDefinitions.Select(handle => reader.GetFieldDefinition(handle).Name).ToArray(); 372FieldDefinition field = reader.GetFieldDefinition((FieldDefinitionHandle)handle);
Metadata\MetadataValidation.cs (2)
82var field = metadataReader.GetFieldDefinition(fieldDef); 88BlobHandle descriptor = metadataReader.GetFieldDefinition(fieldDef).GetMarshallingDescriptor();
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Semantics\FieldInitializerBindingTests.vb (2)
904Dim field = reader.GetFieldDefinition(CType(constant.Parent, FieldDefinitionHandle)) 972Dim field = reader.GetFieldDefinition(CType(constant.Parent, FieldDefinitionHandle))
SemanticSearch.BuildTask (1)
GenerateFilteredReferenceAssembliesTask.cs (1)
436var def = metadataReader.GetFieldDefinition(handle);
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (1)
28public static FieldDefinition GetFieldDefinition(this FieldDefinitionHandle handle, MetadataReader reader) => reader.GetFieldDefinition(handle);