1 write to AdaptedFieldSymbol
Microsoft.CodeAnalysis.CSharp (1)
Emitter\Model\FieldSymbolAdapter.cs (1)
348
AdaptedFieldSymbol
= underlyingFieldSymbol;
38 references to AdaptedFieldSymbol
Microsoft.CodeAnalysis.CSharp (38)
Compiler\MethodCompiler.cs (1)
1664
.Select(f => ((FieldSymbolAdapter)f).
AdaptedFieldSymbol
)
Emitter\Model\FieldSymbolAdapter.cs (33)
35
TypeWithAnnotations fieldTypeWithAnnotations =
AdaptedFieldSymbol
.TypeWithAnnotations;
37
var isFixed =
AdaptedFieldSymbol
.IsFixedSizeBuffer;
38
var implType = isFixed ?
AdaptedFieldSymbol
.FixedImplementationType(moduleBeingBuilt) : fieldTypeWithAnnotations.Type;
54
ImmutableArray<Cci.ICustomModifier>.CastUp(
AdaptedFieldSymbol
.RefCustomModifiers);
56
bool Cci.IFieldReference.IsByReference =>
AdaptedFieldSymbol
.RefKind != RefKind.None;
67
if (
AdaptedFieldSymbol
.IsDefinition &&
68
AdaptedFieldSymbol
.ContainingModule == moduleBeingBuilt.SourceModule)
82
if (!
AdaptedFieldSymbol
.IsDefinition)
97
return moduleBeingBuilt.Translate(
AdaptedFieldSymbol
.ContainingType,
100
needDeclaration:
AdaptedFieldSymbol
.IsDefinition);
107
if (!
AdaptedFieldSymbol
.IsDefinition)
111
else if (
AdaptedFieldSymbol
.ContainingModule == ((PEModuleBuilder)visitor.Context.Module).SourceModule)
132
return
AdaptedFieldSymbol
.MetadataName;
155
if (
AdaptedFieldSymbol
.IsMetadataConstant)
162
return ((PEModuleBuilder)context.Module).CreateConstant(
AdaptedFieldSymbol
.Type,
AdaptedFieldSymbol
.ConstantValue,
186
return
AdaptedFieldSymbol
.IsMetadataConstant;
195
return
AdaptedFieldSymbol
.IsNotSerialized;
204
return
AdaptedFieldSymbol
.IsReadOnly || (
AdaptedFieldSymbol
.IsConst && !
AdaptedFieldSymbol
.IsMetadataConstant);
213
return
AdaptedFieldSymbol
.HasRuntimeSpecialName;
222
return
AdaptedFieldSymbol
.HasSpecialName;
231
return
AdaptedFieldSymbol
.IsStatic;
240
return
AdaptedFieldSymbol
.IsMarshalledExplicitly;
249
return
AdaptedFieldSymbol
.MarshallingInformation;
258
return
AdaptedFieldSymbol
.MarshallingDescriptor;
267
return
AdaptedFieldSymbol
.TypeLayoutOffset ?? 0;
276
return
AdaptedFieldSymbol
.ContainingType.GetCciAdapter();
285
return
AdaptedFieldSymbol
.MetadataVisibility;
293
Debug.Assert(!
AdaptedFieldSymbol
.IsDefinition);
294
return
AdaptedFieldSymbol
.OriginalDefinition.GetCciAdapter();
351
internal sealed override Symbol AdaptedSymbol =>
AdaptedFieldSymbol
;
Emitter\NoPia\EmbeddedTypesManager.cs (4)
454
var containerKind = field.
AdaptedFieldSymbol
.ContainingType.TypeKind;
458
(containerKind == TypeKind.Struct && (field.
AdaptedFieldSymbol
.IsStatic || field.
AdaptedFieldSymbol
.DeclaredAccessibility != Accessibility.Public)))
461
ReportNotEmbeddableSymbol(ErrorCode.ERR_InteropStructContainsMethods, field.
AdaptedFieldSymbol
.ContainingType, syntaxNodeOpt, diagnostics, this);