2 types derived from SynthesizedAttributeData
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Source\SynthesizedAttributeData.cs (2)
27private sealed class FromMethodAndArguments : SynthesizedAttributeData 67private sealed class FromSourceAttributeData : SynthesizedAttributeData
144 references to SynthesizedAttributeData
Microsoft.CodeAnalysis.CSharp (142)
Emitter\Model\MethodSymbolAdapter.cs (1)
513ArrayBuilder<SynthesizedAttributeData> synthesized = null;
Emitter\Model\PEAssemblyBuilder.cs (24)
197internal override SynthesizedAttributeData SynthesizeEmbeddedAttribute() 200return SynthesizedAttributeData.Create( 207internal override SynthesizedAttributeData SynthesizeNullableAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments) 212return SynthesizedAttributeData.Create( 222internal override SynthesizedAttributeData SynthesizeNullableContextAttribute(ImmutableArray<TypedConstant> arguments) 226return SynthesizedAttributeData.Create( 236internal override SynthesizedAttributeData SynthesizeNullablePublicOnlyAttribute(ImmutableArray<TypedConstant> arguments) 240return SynthesizedAttributeData.Create( 250internal override SynthesizedAttributeData SynthesizeNativeIntegerAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments) 255return SynthesizedAttributeData.Create( 265internal override SynthesizedAttributeData SynthesizeScopedRefAttribute(WellKnownMember member) 269return SynthesizedAttributeData.Create( 279internal override SynthesizedAttributeData SynthesizeRefSafetyRulesAttribute(ImmutableArray<TypedConstant> arguments) 283return SynthesizedAttributeData.Create( 293protected override SynthesizedAttributeData TrySynthesizeIsReadOnlyAttribute() 297return SynthesizedAttributeData.Create( 307protected override SynthesizedAttributeData TrySynthesizeRequiresLocationAttribute() 311return SynthesizedAttributeData.Create( 321protected override SynthesizedAttributeData TrySynthesizeParamCollectionAttribute() 325return SynthesizedAttributeData.Create( 335protected override SynthesizedAttributeData TrySynthesizeIsUnmanagedAttribute() 339return SynthesizedAttributeData.Create( 349protected override SynthesizedAttributeData TrySynthesizeIsByRefLikeAttribute() 353return SynthesizedAttributeData.Create(
Emitter\Model\PEModuleBuilder.cs (25)
1490internal abstract SynthesizedAttributeData SynthesizeEmbeddedAttribute(); 1492internal SynthesizedAttributeData SynthesizeIsReadOnlyAttribute(Symbol symbol) 1503internal SynthesizedAttributeData SynthesizeRequiresLocationAttribute(ParameterSymbol symbol) 1514internal SynthesizedAttributeData SynthesizeParamCollectionAttribute(ParameterSymbol symbol) 1525internal SynthesizedAttributeData SynthesizeIsUnmanagedAttribute(Symbol symbol) 1536internal SynthesizedAttributeData SynthesizeIsByRefLikeAttribute(Symbol symbol) 1552internal SynthesizedAttributeData SynthesizeNullableAttributeIfNecessary(Symbol symbol, byte? nullableContextValue, TypeWithAnnotations type) 1563SynthesizedAttributeData attribute; 1591internal SynthesizedAttributeData SynthesizeNullableAttributeIfNecessary(byte? nullableContextValue, byte nullableValue) 1605internal virtual SynthesizedAttributeData SynthesizeNullableAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments) 1612internal SynthesizedAttributeData SynthesizeNullableContextAttribute(Symbol symbol, byte value) 1625internal virtual SynthesizedAttributeData SynthesizeNullableContextAttribute(ImmutableArray<TypedConstant> arguments) 1632internal SynthesizedAttributeData SynthesizePreserveBaseOverridesAttribute() 1637internal SynthesizedAttributeData SynthesizeNativeIntegerAttribute(Symbol symbol, TypeSymbol type) 1655SynthesizedAttributeData attribute; 1674internal virtual SynthesizedAttributeData SynthesizeNativeIntegerAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments) 1683internal SynthesizedAttributeData SynthesizeScopedRefAttribute(ParameterSymbol symbol, ScopedKind scope) 1698internal virtual SynthesizedAttributeData SynthesizeScopedRefAttribute(WellKnownMember member) 1705internal virtual SynthesizedAttributeData SynthesizeRefSafetyRulesAttribute(ImmutableArray<TypedConstant> arguments) 1719internal virtual SynthesizedAttributeData SynthesizeNullablePublicOnlyAttribute(ImmutableArray<TypedConstant> arguments) 1725protected virtual SynthesizedAttributeData TrySynthesizeIsReadOnlyAttribute() 1731protected virtual SynthesizedAttributeData TrySynthesizeRequiresLocationAttribute() 1737protected virtual SynthesizedAttributeData TrySynthesizeParamCollectionAttribute() 1743protected virtual SynthesizedAttributeData TrySynthesizeIsUnmanagedAttribute() 1749protected virtual SynthesizedAttributeData TrySynthesizeIsByRefLikeAttribute()
Emitter\Model\PENetModuleBuilder.cs (1)
27internal override SynthesizedAttributeData SynthesizeEmbeddedAttribute()
Emitter\Model\SourceAssemblySymbolAdapter.cs (2)
21ArrayBuilder<SynthesizedAttributeData> synthesized = null; 26var referenceAssemblyAttribute = this.DeclaringCompilation
Emitter\Model\SymbolAdapter.cs (3)
98ArrayBuilder<SynthesizedAttributeData> synthesized = null; 113ArrayBuilder<SynthesizedAttributeData> synthesized, 130ArrayBuilder<SynthesizedAttributeData> synthesized,
Emitter\NoPia\EmbeddedType.cs (2)
263return SynthesizedAttributeData.Create(TypeManager.ModuleBeingBuilt.Compilation, ctor, ImmutableArray<TypedConstant>.Empty, ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 279return SynthesizedAttributeData.Create(TypeManager.ModuleBeingBuilt.Compilation, ctor,
Emitter\NoPia\EmbeddedTypesManager.cs (3)
138return SynthesizedAttributeData.Create(ModuleBeingBuilt.Compilation, ctor, 147return SynthesizedAttributeData.Create(ModuleBeingBuilt.Compilation, ctor, 152return SynthesizedAttributeData.Create(ModuleBeingBuilt.Compilation, ctor, constructorArguments, namedArguments);
Lowering\IteratorRewriter\IteratorConstructor.cs (1)
31internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Lowering\MethodToClassRewriter.cs (1)
760internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Lowering\StateMachineRewriter\SynthesizedStateMachineMethod.cs (1)
121internal sealed override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Lowering\SynthesizedMethodBaseSymbol.cs (1)
75internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.DelegateTemplateSymbol.cs (1)
246internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.FieldSymbol.cs (1)
146internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertyAccessorSymbol.cs (1)
86internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (1)
168internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TemplateSymbol.cs (2)
160internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes) 177private SynthesizedAttributeData TrySynthesizeDebuggerDisplayAttribute()
Symbols\Attributes\RetargetingAttributeData.cs (1)
30Debug.Assert(underlying is SourceAttributeData or SynthesizedAttributeData);
Symbols\Compilation_WellKnownMembers.cs (12)
388internal SynthesizedAttributeData? TrySynthesizeAttribute( 434return SynthesizedAttributeData.Create(this, ctorSymbol, arguments, namedStringArguments); 437internal SynthesizedAttributeData? TrySynthesizeAttribute( 449return SynthesizedAttributeData.Create( 456internal SynthesizedAttributeData? SynthesizeDecimalConstantAttribute(decimal value) 479internal SynthesizedAttributeData? SynthesizeDateTimeConstantAttribute(DateTime value) 488internal SynthesizedAttributeData? SynthesizeDebuggerBrowsableNeverAttribute() 502internal SynthesizedAttributeData? SynthesizeDebuggerStepThroughAttribute() 698internal SynthesizedAttributeData? SynthesizeDebuggableAttribute() 775internal SynthesizedAttributeData? SynthesizeDynamicAttribute(TypeSymbol type, int customModifiersCount, RefKind refKindOpt = RefKind.None) 795internal SynthesizedAttributeData? SynthesizeTupleNamesAttribute(TypeSymbol type) 811internal SynthesizedAttributeData? SynthesizeAttributeUsageAttribute(AttributeTargets targets, bool allowMultiple, bool inherited)
Symbols\Metadata\PE\PEMethodSymbol.cs (2)
1656internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes) 1661internal override void AddSynthesizedReturnTypeAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\MethodSymbol.cs (2)
1151internal virtual void AddSynthesizedReturnTypeAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes) 1269protected static void AddRequiredMembersMarkerAttributes(ref ArrayBuilder<SynthesizedAttributeData> attributes, MethodSymbol methodToAttribute)
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
388internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Source\SourceAssemblySymbol.cs (2)
1836var attribute = _compilation.TrySynthesizeAttribute( 1938internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Source\SourceConstructorSymbolBase.cs (1)
263internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Source\SourceEventFieldSymbol.cs (1)
59internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Source\SourceEventSymbol.cs (1)
324internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData>? attributes)
Symbols\Source\SourceFixedFieldSymbol.cs (2)
40internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes) 206internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5316internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Source\SourceMemberFieldSymbol.cs (1)
103internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Source\SourceMemberMethodSymbol.cs (1)
1008internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Source\SourceModuleSymbol.cs (1)
624internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1662internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (1)
95internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Source\SourceParameterSymbolBase.cs (1)
69internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Source\SourcePropertyAccessorSymbol.cs (6)
789internal sealed override void AddSynthesizedReturnTypeAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes) 796AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(_property.MaybeNullAttributeIfExists)); 800AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(_property.NotNullAttributeIfExists)); 804internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes) 818AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(attributeData)); 826AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(attributeData));
Symbols\Source\SourcePropertySymbolBase.cs (1)
1363internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Source\SourceTypeParameterSymbol.cs (1)
385internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Source\SynthesizedAttributeData.cs (2)
17public static SynthesizedAttributeData Create(CSharpCompilation compilation, MethodSymbol wellKnownMember, ImmutableArray<TypedConstant> arguments, ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments) 22public static SynthesizedAttributeData Create(SourceAttributeData original)
Symbols\Symbol.cs (4)
873internal virtual void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes) 880internal static void AddSynthesizedAttribute(ref ArrayBuilder<SynthesizedAttributeData> attributes, SynthesizedAttributeData attribute) 886attributes = new ArrayBuilder<SynthesizedAttributeData>(1);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
920internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Synthesized\Records\SynthesizedRecordCopyCtor.cs (1)
75internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (2)
92internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes) 158internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperatorBase.cs (1)
81internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Synthesized\Records\SynthesizedRecordOrdinaryMethod.cs (1)
75internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Synthesized\SynthesizedAccessorValueParameterSymbol.cs (3)
80internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes) 89AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(property.DisallowNullAttributeIfExists)); 93AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(property.AllowNullAttributeIfExists));
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
40internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Synthesized\SynthesizedContainer.cs (1)
58internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
175internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
381internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Synthesized\SynthesizedEnumValueFieldSymbol.cs (1)
38internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Synthesized\SynthesizedEventAccessorSymbol.cs (1)
73internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Synthesized\SynthesizedFieldSymbolBase.cs (1)
46internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (1)
74internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (2)
188internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes) 197SynthesizedAttributeData.Create(
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
322internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\Synthesized\SynthesizedParameterSymbol.cs (2)
148internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes) 213var attrData = defaultValue.SpecialType switch
Symbols\Synthesized\SynthesizedSubstitutedTypeParameterSymbol.cs (1)
35internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Symbols\TypeSymbolExtensions.cs (1)
2107static void addIfNotNull(ArrayBuilder<Cci.ICustomAttribute> builder, SynthesizedAttributeData? attr)
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
74internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<SynthesizedAttributeData> attributes)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests_Synthesized.cs (2)
1962var attribute = comp.TrySynthesizeAttribute(WellKnownMember.System_Diagnostics_DebuggerDisplayAttribute__ctor); 1966var attribute2 = comp.TrySynthesizeAttribute(