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