1 interface inheriting from IFieldDefinition
Microsoft.CodeAnalysis (1)
PEWriter\Members.cs (1)
974
internal interface IGlobalFieldDefinition :
IFieldDefinition
1 implementation of IFieldDefinition
Microsoft.CodeAnalysis (1)
Emit\NoPia\CommonEmbeddedField.cs (1)
35
internal abstract class CommonEmbeddedField : CommonEmbeddedMember<TFieldSymbol>, Cci.
IFieldDefinition
64 references to IFieldDefinition
Microsoft.CodeAnalysis (64)
CodeGen\PrivateImplementationDetails.cs (4)
460
public override IEnumerable<Cci.
IFieldDefinition
> GetFields(EmitContext context)
731
private readonly ImmutableArray<Cci.
IFieldDefinition
> _fields;
787
public Cci.
IFieldDefinition
Field => _fields[0];
792
public override IEnumerable<Cci.
IFieldDefinition
> GetFields(EmitContext context) => _fields;
Emit\CommonPEModuleBuilder.cs (5)
803
public ConcurrentQueue<Cci.
IFieldDefinition
> Fields;
835
foreach (
var
field in Fields)
934
public virtual void AddSynthesizedDefinition(TNamedTypeSymbol container, Cci.
IFieldDefinition
field)
941
Interlocked.CompareExchange(ref defs.Fields, new ConcurrentQueue<Cci.
IFieldDefinition
>(), null);
969
public IEnumerable<Cci.
IFieldDefinition
> GetSynthesizedFields(TNamedTypeSymbol container)
Emit\EditAndContinue\DeletedSourceTypeDefinition.cs (1)
116
public IEnumerable<
IFieldDefinition
> GetFields(EmitContext context)
Emit\EditAndContinue\DeltaMetadataWriter.cs (8)
41
private readonly DefinitionIndex<
IFieldDefinition
> _fieldDefs;
106
_fieldDefs = new DefinitionIndex<
IFieldDefinition
>(this.TryGetExistingFieldDefIndex, sizes[(int)TableIndex.Field]);
324
protected override FieldDefinitionHandle GetFieldDefinitionHandle(
IFieldDefinition
def)
329
protected override IReadOnlyList<
IFieldDefinition
> GetFieldDefs()
643
foreach (
var
fieldDef in typeDef.GetFields(this.Context))
722
IFieldDefinition
fieldDef => TryGetExistingFieldDefIndex(fieldDef, out _),
1627
private bool TryGetExistingFieldDefIndex(
IFieldDefinition
item, out int index)
1847
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)
21
private readonly DefinitionIndex<
IFieldDefinition
> _fieldDefs;
94
_fieldDefs = new DefinitionIndex<
IFieldDefinition
>(numFieldDefsGuess);
161
protected override FieldDefinitionHandle GetFieldDefinitionHandle(
IFieldDefinition
def)
166
protected override IReadOnlyList<
IFieldDefinition
> GetFieldDefs()
392
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)
203
protected abstract FieldDefinitionHandle GetFieldDefinitionHandle(
IFieldDefinition
def);
209
protected abstract IReadOnlyList<
IFieldDefinition
> GetFieldDefs();
753
public static FieldAttributes GetFieldAttributes(
IFieldDefinition
fieldDef)
828
IFieldDefinition
fieldDef = null;
1679
IFieldDefinition
fieldDef => GetFieldDefinitionHandle(fieldDef),
2279
foreach (
IFieldDefinition
fieldDef in this.GetFieldDefs())
2294
foreach (
IFieldDefinition
fieldDef in this.GetFieldDefs())
2336
foreach (
IFieldDefinition
fieldDef in this.GetFieldDefs())
2369
foreach (
IFieldDefinition
fieldDef in fieldDefs)
2385
foreach (
IFieldDefinition
fieldDef in this.GetFieldDefs())
PEWriter\RootModuleType.cs (2)
92
public IEnumerable<
IFieldDefinition
> GetFields(EmitContext context)
94
return SpecializedCollections.EmptyEnumerable<
IFieldDefinition
>();
PEWriter\Types.cs (1)
475
IEnumerable<
IFieldDefinition
> GetFields(EmitContext context);