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