1 interface inheriting from IFieldDefinition
Microsoft.CodeAnalysis (1)
PEWriter\Members.cs (1)
974internal interface IGlobalFieldDefinition : IFieldDefinition
2 implementations of IFieldDefinition
Microsoft.CodeAnalysis (2)
CodeGen\PrivateImplementationDetails.cs (1)
615internal abstract class SynthesizedStaticField : Cci.IFieldDefinition
Emit\NoPia\CommonEmbeddedField.cs (1)
35internal abstract class CommonEmbeddedField : CommonEmbeddedMember<TFieldSymbol>, Cci.IFieldDefinition
62 references to IFieldDefinition
Microsoft.CodeAnalysis (62)
CodeGen\PrivateImplementationDetails.cs (2)
352public override IEnumerable<Cci.IFieldDefinition> GetFields(EmitContext context) 696public Cci.IFieldDefinition GetResolvedField(EmitContext context) => this;
Emit\CommonPEModuleBuilder.cs (5)
802public ConcurrentQueue<Cci.IFieldDefinition> Fields; 834foreach (var field in Fields) 933public void AddSynthesizedDefinition(TNamedTypeSymbol container, Cci.IFieldDefinition field) 940Interlocked.CompareExchange(ref defs.Fields, new ConcurrentQueue<Cci.IFieldDefinition>(), null); 968public IEnumerable<Cci.IFieldDefinition> GetSynthesizedFields(TNamedTypeSymbol container)
Emit\EditAndContinue\DeletedSourceTypeDefinition.cs (1)
116public IEnumerable<IFieldDefinition> GetFields(EmitContext context)
Emit\EditAndContinue\DeltaMetadataWriter.cs (8)
42private readonly DefinitionIndex<IFieldDefinition> _fieldDefs; 107_fieldDefs = new DefinitionIndex<IFieldDefinition>(this.TryGetExistingFieldDefIndex, sizes[(int)TableIndex.Field]); 325protected override FieldDefinitionHandle GetFieldDefinitionHandle(IFieldDefinition def) 330protected override IReadOnlyList<IFieldDefinition> GetFieldDefs() 644foreach (var fieldDef in typeDef.GetFields(this.Context)) 723IFieldDefinition fieldDef => TryGetExistingFieldDefIndex(fieldDef, out _), 1628private bool TryGetExistingFieldDefIndex(IFieldDefinition item, out int index) 1848public override void Visit(IFieldDefinition fieldDefinition)
Emit\EditAndContinue\EmitBaseline.cs (4)
179fieldsAdded: new Dictionary<Cci.IFieldDefinition, int>(), 237internal readonly IReadOnlyDictionary<Cci.IFieldDefinition, int> FieldsAdded; 300IReadOnlyDictionary<Cci.IFieldDefinition, int> fieldsAdded, 399IReadOnlyDictionary<Cci.IFieldDefinition, int> fieldsAdded,
Emit\EditAndContinue\SymbolChanges.cs (2)
296if (item is IFieldDefinition fieldDefinition && 535internal IDefinition? GetContainingDefinitionForBackingField(IFieldDefinition fieldDefinition)
Emit\NoPia\CommonEmbeddedField.cs (14)
67MetadataConstant Cci.IFieldDefinition.GetCompileTimeValue(EmitContext context) 72ImmutableArray<byte> Cci.IFieldDefinition.MappedData 80bool Cci.IFieldDefinition.IsCompileTimeConstant 88bool Cci.IFieldDefinition.IsNotSerialized 96bool Cci.IFieldDefinition.IsReadOnly 104bool Cci.IFieldDefinition.IsRuntimeSpecial 112bool Cci.IFieldDefinition.IsSpecialName 120bool Cci.IFieldDefinition.IsStatic 128bool Cci.IFieldDefinition.IsMarshalledExplicitly 136Cci.IMarshallingInformation Cci.IFieldDefinition.MarshallingInformation 144ImmutableArray<byte> Cci.IFieldDefinition.MarshallingDescriptor 152int Cci.IFieldDefinition.Offset 183visitor.Visit((Cci.IFieldDefinition)this); 208Cci.IFieldDefinition Cci.IFieldReference.GetResolvedField(EmitContext context)
Emit\NoPia\CommonEmbeddedType.cs (3)
45private ImmutableArray<Cci.IFieldDefinition> _lazyFields; 272IEnumerable<Cci.IFieldDefinition> Cci.ITypeDefinition.GetFields(EmitContext context) 278var builder = ArrayBuilder<Cci.IFieldDefinition>.GetInstance();
PEWriter\FullMetadataWriter.cs (5)
22private readonly DefinitionIndex<IFieldDefinition> _fieldDefs; 95_fieldDefs = new DefinitionIndex<IFieldDefinition>(numFieldDefsGuess); 162protected override FieldDefinitionHandle GetFieldDefinitionHandle(IFieldDefinition def) 167protected override IReadOnlyList<IFieldDefinition> GetFieldDefs() 393foreach (IFieldDefinition fieldDef in typeDef.GetFields(Context))
PEWriter\Members.cs (1)
277IFieldDefinition? GetResolvedField(EmitContext context);
PEWriter\MetadataVisitor.cs (4)
92public void Visit(IEnumerable<IFieldDefinition> fields) 94foreach (IFieldDefinition field in fields) 100public virtual void Visit(IFieldDefinition fieldDefinition) 190this.Visit((IFieldDefinition)globalFieldDefinition);
PEWriter\MetadataWriter.cs (10)
204protected abstract FieldDefinitionHandle GetFieldDefinitionHandle(IFieldDefinition def); 210protected abstract IReadOnlyList<IFieldDefinition> GetFieldDefs(); 754public static FieldAttributes GetFieldAttributes(IFieldDefinition fieldDef) 829IFieldDefinition fieldDef = null; 1680IFieldDefinition fieldDef => GetFieldDefinitionHandle(fieldDef), 2280foreach (IFieldDefinition fieldDef in this.GetFieldDefs()) 2295foreach (IFieldDefinition fieldDef in this.GetFieldDefs()) 2337foreach (IFieldDefinition fieldDef in this.GetFieldDefs()) 2370foreach (IFieldDefinition fieldDef in fieldDefs) 2386foreach (IFieldDefinition fieldDef in this.GetFieldDefs())
PEWriter\RootModuleType.cs (2)
91public IEnumerable<IFieldDefinition> GetFields(EmitContext context) 93return SpecializedCollections.EmptyEnumerable<IFieldDefinition>();
PEWriter\Types.cs (1)
475IEnumerable<IFieldDefinition> GetFields(EmitContext context);