public FixedFieldImplementationType(SourceMemberFieldSymbol field) : base(GeneratedNames.MakeFixedFieldImplementationName(field.Name), typeParameters: ImmutableArray <TypeParameterSymbol> .Empty, typeMap: TypeMap.Empty) { _field = field; _constructor = new SynthesizedInstanceConstructor(this); _internalField = new SynthesizedFieldSymbol(this, ((PointerTypeSymbol)field.Type).PointedAtType, FixedElementFieldName, isPublic: true); }
public FixedFieldImplementationType(SourceMemberFieldSymbol field) : base(field.ContainingType, GeneratedNames.MakeFixedFieldImplementationName(field.Name), TypeKind.Class) { this.field = field; this.constructor = new SynthesizedInstanceConstructor(this); this.internalField = new SynthesizedFieldSymbol(this, ((PointerTypeSymbol)field.Type).PointedAtType, FixedElementFieldName, isPublic: true); }
internal SourcePrimaryConstructorParameterSymbolWithBackingField( Symbol owner, int ordinal, TypeSymbol parameterType, RefKind refKind, string name, ImmutableArray <Location> locations, ParameterSyntax syntax, ConstantValue defaultSyntaxValue, bool isParams, bool isExtensionMethodThis, DiagnosticBag diagnostics ) : base(owner, ordinal, parameterType, refKind, ImmutableArray <CustomModifier> .Empty, false, name, locations, syntax.GetReference(), defaultSyntaxValue, isParams, isExtensionMethodThis) { bool modifierErrors; var modifiers = SourceMemberFieldSymbol.MakeModifiers(owner.ContainingType, syntax.Identifier, syntax.Modifiers, diagnostics, out modifierErrors, ignoreParameterModifiers: true); backingField = new BackingField(this, modifiers, modifierErrors, diagnostics); }
public FixedFieldImplementationType(SourceMemberFieldSymbol field) : base(GeneratedNames.MakeFixedFieldImplementationName(field.Name), typeParameters: ImmutableArray<TypeParameterSymbol>.Empty, typeMap: TypeMap.Empty) { _field = field; _constructor = new SynthesizedInstanceConstructor(this); _internalField = new SynthesizedFieldSymbol(this, ((PointerTypeSymbol)field.Type).PointedAtType, FixedElementFieldName, isPublic: true); }