2 types derived from SynthesizedAttributeData
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Source\SynthesizedAttributeData.cs (2)
27private sealed class FromMethodAndArguments : SynthesizedAttributeData 67private sealed class FromSourceAttributeData : SynthesizedAttributeData
92 references to SynthesizedAttributeData
Microsoft.CodeAnalysis.CSharp (89)
Emitter\Model\PEAssemblyBuilder.cs (26)
204internal override SynthesizedAttributeData SynthesizeEmbeddedAttribute() 207return SynthesizedAttributeData.Create( 214internal override SynthesizedAttributeData SynthesizeNullableAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments) 219return SynthesizedAttributeData.Create( 229internal override SynthesizedAttributeData SynthesizeNullableContextAttribute(ImmutableArray<TypedConstant> arguments) 233return SynthesizedAttributeData.Create( 243internal override SynthesizedAttributeData SynthesizeNullablePublicOnlyAttribute(ImmutableArray<TypedConstant> arguments) 247return SynthesizedAttributeData.Create( 257internal override SynthesizedAttributeData SynthesizeNativeIntegerAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments) 262return SynthesizedAttributeData.Create( 272internal override SynthesizedAttributeData SynthesizeScopedRefAttribute(WellKnownMember member) 276return SynthesizedAttributeData.Create( 286internal override SynthesizedAttributeData SynthesizeRefSafetyRulesAttribute(ImmutableArray<TypedConstant> arguments) 290return SynthesizedAttributeData.Create( 300protected override SynthesizedAttributeData TrySynthesizeIsReadOnlyAttribute() 304return SynthesizedAttributeData.Create( 314protected override SynthesizedAttributeData TrySynthesizeRequiresLocationAttribute() 318return SynthesizedAttributeData.Create( 328protected override SynthesizedAttributeData TrySynthesizeParamCollectionAttribute() 332return SynthesizedAttributeData.Create( 342protected override SynthesizedAttributeData TrySynthesizeExtensionMarkerAttribute(string markerName) 346return SynthesizedAttributeData.Create( 361protected override SynthesizedAttributeData TrySynthesizeIsUnmanagedAttribute() 365return SynthesizedAttributeData.Create( 375protected override SynthesizedAttributeData TrySynthesizeIsByRefLikeAttribute() 379return SynthesizedAttributeData.Create(
Emitter\Model\PEModuleBuilder.cs (27)
1489internal abstract SynthesizedAttributeData SynthesizeEmbeddedAttribute(); 1491internal SynthesizedAttributeData SynthesizeIsReadOnlyAttribute(Symbol symbol) 1502internal SynthesizedAttributeData SynthesizeRequiresLocationAttribute(ParameterSymbol symbol) 1513internal SynthesizedAttributeData SynthesizeParamCollectionAttribute(ParameterSymbol symbol) 1524internal SynthesizedAttributeData SynthesizeExtensionMarkerAttribute(Symbol symbol, string markerName) 1535internal SynthesizedAttributeData SynthesizeIsUnmanagedAttribute(Symbol symbol) 1546internal SynthesizedAttributeData SynthesizeIsByRefLikeAttribute(Symbol symbol) 1562internal SynthesizedAttributeData SynthesizeNullableAttributeIfNecessary(Symbol symbol, byte? nullableContextValue, TypeWithAnnotations type) 1573SynthesizedAttributeData attribute; 1601internal SynthesizedAttributeData SynthesizeNullableAttributeIfNecessary(byte? nullableContextValue, byte nullableValue) 1615internal virtual SynthesizedAttributeData SynthesizeNullableAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments) 1622internal SynthesizedAttributeData SynthesizeNullableContextAttribute(Symbol symbol, byte value) 1635internal virtual SynthesizedAttributeData SynthesizeNullableContextAttribute(ImmutableArray<TypedConstant> arguments) 1642internal SynthesizedAttributeData SynthesizePreserveBaseOverridesAttribute() 1647internal SynthesizedAttributeData SynthesizeNativeIntegerAttribute(Symbol symbol, TypeSymbol type) 1665SynthesizedAttributeData attribute; 1684internal virtual SynthesizedAttributeData SynthesizeNativeIntegerAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments) 1693internal SynthesizedAttributeData SynthesizeScopedRefAttribute(ParameterSymbol symbol, ScopedKind scope) 1708internal virtual SynthesizedAttributeData SynthesizeScopedRefAttribute(WellKnownMember member) 1715internal virtual SynthesizedAttributeData SynthesizeRefSafetyRulesAttribute(ImmutableArray<TypedConstant> arguments) 1729internal virtual SynthesizedAttributeData SynthesizeNullablePublicOnlyAttribute(ImmutableArray<TypedConstant> arguments) 1735protected virtual SynthesizedAttributeData TrySynthesizeIsReadOnlyAttribute() 1741protected virtual SynthesizedAttributeData TrySynthesizeRequiresLocationAttribute() 1747protected virtual SynthesizedAttributeData TrySynthesizeParamCollectionAttribute() 1753protected virtual SynthesizedAttributeData TrySynthesizeExtensionMarkerAttribute(string markerName) 1766protected virtual SynthesizedAttributeData TrySynthesizeIsUnmanagedAttribute() 1772protected virtual SynthesizedAttributeData TrySynthesizeIsByRefLikeAttribute()
Emitter\Model\PENetModuleBuilder.cs (1)
28internal override SynthesizedAttributeData SynthesizeEmbeddedAttribute()
Emitter\Model\SourceAssemblySymbolAdapter.cs (1)
26var referenceAssemblyAttribute = this.DeclaringCompilation
Emitter\NoPia\EmbeddedType.cs (2)
262return SynthesizedAttributeData.Create(TypeManager.ModuleBeingBuilt.Compilation, ctor, ImmutableArray<TypedConstant>.Empty, ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty); 278return SynthesizedAttributeData.Create(TypeManager.ModuleBeingBuilt.Compilation, ctor,
Emitter\NoPia\EmbeddedTypesManager.cs (3)
137return SynthesizedAttributeData.Create(ModuleBeingBuilt.Compilation, ctor, 146return SynthesizedAttributeData.Create(ModuleBeingBuilt.Compilation, ctor, 151return SynthesizedAttributeData.Create(ModuleBeingBuilt.Compilation, ctor, constructorArguments, namedArguments);
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TemplateSymbol.cs (1)
177private SynthesizedAttributeData TrySynthesizeDebuggerDisplayAttribute()
Symbols\Attributes\RetargetingAttributeData.cs (1)
30Debug.Assert(underlying is SourceAttributeData or SynthesizedAttributeData);
Symbols\Compilation_WellKnownMembers.cs (12)
390internal SynthesizedAttributeData? TrySynthesizeAttribute( 436return SynthesizedAttributeData.Create(this, ctorSymbol, arguments, namedStringArguments); 439internal SynthesizedAttributeData? TrySynthesizeAttribute( 451return SynthesizedAttributeData.Create( 458internal SynthesizedAttributeData? SynthesizeDecimalConstantAttribute(decimal value) 481internal SynthesizedAttributeData? SynthesizeDateTimeConstantAttribute(DateTime value) 490internal SynthesizedAttributeData? SynthesizeDebuggerBrowsableNeverAttribute() 504internal SynthesizedAttributeData? SynthesizeDebuggerStepThroughAttribute() 712internal SynthesizedAttributeData? SynthesizeDebuggableAttribute() 789internal SynthesizedAttributeData? SynthesizeDynamicAttribute(TypeSymbol type, int customModifiersCount, RefKind refKindOpt = RefKind.None) 809internal SynthesizedAttributeData? SynthesizeTupleNamesAttribute(TypeSymbol type) 825internal SynthesizedAttributeData? SynthesizeAttributeUsageAttribute(AttributeTargets targets, bool allowMultiple, bool inherited)
Symbols\Source\ExtensionGroupingInfo.cs (2)
784SynthesizedAttributeData? extensionAttribute = ExtensionMarkerTypes[0].UnderlyingExtensions[0].DeclaringCompilation.TrySynthesizeAttribute(WellKnownMember.System_Runtime_CompilerServices_ExtensionAttribute__ctor); 824if (attribute is SynthesizedAttributeData synthesized &&
Symbols\Source\SourceAssemblySymbol.cs (1)
1837var attribute = _compilation.TrySynthesizeAttribute(
Symbols\Source\SourceMethodSymbol.cs (2)
210AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(attributeData)); 218AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(attributeData));
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1789SynthesizedAttributeData.Create(DeclaringCompilation, parameterlessConstructor, arguments: [], namedArguments: []));
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
808AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(_property.MaybeNullAttributeIfExists)); 812AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(_property.NotNullAttributeIfExists));
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\Synthesized\SynthesizedAccessorValueParameterSymbol.cs (2)
94AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(property.DisallowNullAttributeIfExists)); 98AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(property.AllowNullAttributeIfExists));
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
208SynthesizedAttributeData.Create(
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
213var attrData = defaultValue.SpecialType switch
Symbols\TypeSymbolExtensions.cs (1)
2108static void addIfNotNull(ArrayBuilder<Cci.ICustomAttribute> builder, SynthesizedAttributeData? attr)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests_Synthesized.cs (2)
1962var attribute = comp.TrySynthesizeAttribute(WellKnownMember.System_Diagnostics_DebuggerDisplayAttribute__ctor); 1966var attribute2 = comp.TrySynthesizeAttribute(
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
2293internal static IEnumerable<string> GetAttributeNames(ImmutableArray<SynthesizedAttributeData> attributes)