2 types derived from SynthesizedAttributeData
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Source\SynthesizedAttributeData.cs (2)
27private sealed class FromMethodAndArguments : SynthesizedAttributeData 67private sealed class FromSourceAttributeData : SynthesizedAttributeData
100 references to SynthesizedAttributeData
Microsoft.CodeAnalysis.CSharp (97)
Emitter\Model\PEAssemblyBuilder.cs (30)
208internal override SynthesizedAttributeData SynthesizeEmbeddedAttribute() 211return SynthesizedAttributeData.Create( 218internal override SynthesizedAttributeData SynthesizeNullableAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments) 223return SynthesizedAttributeData.Create( 233internal override SynthesizedAttributeData SynthesizeNullableContextAttribute(ImmutableArray<TypedConstant> arguments) 237return SynthesizedAttributeData.Create( 247internal override SynthesizedAttributeData SynthesizeNullablePublicOnlyAttribute(ImmutableArray<TypedConstant> arguments) 251return SynthesizedAttributeData.Create( 261internal override SynthesizedAttributeData SynthesizeNativeIntegerAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments) 266return SynthesizedAttributeData.Create( 276internal override SynthesizedAttributeData SynthesizeScopedRefAttribute(WellKnownMember member) 280return SynthesizedAttributeData.Create( 290internal override SynthesizedAttributeData SynthesizeRefSafetyRulesAttribute(ImmutableArray<TypedConstant> arguments) 294return SynthesizedAttributeData.Create( 304internal override SynthesizedAttributeData TrySynthesizeMemorySafetyRulesAttribute(ImmutableArray<TypedConstant> arguments) 308return SynthesizedAttributeData.Create( 318protected override SynthesizedAttributeData TrySynthesizeIsReadOnlyAttribute() 322return SynthesizedAttributeData.Create( 332protected override SynthesizedAttributeData TrySynthesizeRequiresLocationAttribute() 336return SynthesizedAttributeData.Create( 346protected override SynthesizedAttributeData TrySynthesizeRequiresUnsafeAttributeCore() 350return SynthesizedAttributeData.Create( 360protected override SynthesizedAttributeData TrySynthesizeParamCollectionAttribute() 364return SynthesizedAttributeData.Create( 374protected override SynthesizedAttributeData TrySynthesizeExtensionMarkerAttribute(string markerName) 378return SynthesizedAttributeData.Create( 393protected override SynthesizedAttributeData TrySynthesizeIsUnmanagedAttribute() 397return SynthesizedAttributeData.Create( 407protected override SynthesizedAttributeData TrySynthesizeIsByRefLikeAttribute() 411return SynthesizedAttributeData.Create(
Emitter\Model\PEModuleBuilder.cs (30)
1642internal abstract SynthesizedAttributeData SynthesizeEmbeddedAttribute(); 1644internal SynthesizedAttributeData SynthesizeIsReadOnlyAttribute(Symbol symbol) 1655internal SynthesizedAttributeData SynthesizeRequiresLocationAttribute(ParameterSymbol symbol) 1666internal SynthesizedAttributeData SynthesizeParamCollectionAttribute(ParameterSymbol symbol) 1677internal SynthesizedAttributeData SynthesizeExtensionMarkerAttribute(Symbol symbol, string markerName) 1688internal SynthesizedAttributeData SynthesizeIsUnmanagedAttribute(Symbol symbol) 1699internal SynthesizedAttributeData SynthesizeIsByRefLikeAttribute(Symbol symbol) 1715internal SynthesizedAttributeData SynthesizeNullableAttributeIfNecessary(Symbol symbol, byte? nullableContextValue, TypeWithAnnotations type) 1726SynthesizedAttributeData attribute; 1754internal SynthesizedAttributeData SynthesizeNullableAttributeIfNecessary(byte? nullableContextValue, byte nullableValue) 1768internal virtual SynthesizedAttributeData SynthesizeNullableAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments) 1775internal SynthesizedAttributeData SynthesizeNullableContextAttribute(Symbol symbol, byte value) 1788internal virtual SynthesizedAttributeData SynthesizeNullableContextAttribute(ImmutableArray<TypedConstant> arguments) 1795internal SynthesizedAttributeData SynthesizePreserveBaseOverridesAttribute() 1800internal SynthesizedAttributeData SynthesizeNativeIntegerAttribute(Symbol symbol, TypeSymbol type) 1818SynthesizedAttributeData attribute; 1837internal virtual SynthesizedAttributeData SynthesizeNativeIntegerAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments) 1846internal SynthesizedAttributeData SynthesizeScopedRefAttribute(ParameterSymbol symbol, ScopedKind scope) 1861internal virtual SynthesizedAttributeData SynthesizeScopedRefAttribute(WellKnownMember member) 1868internal virtual SynthesizedAttributeData SynthesizeRefSafetyRulesAttribute(ImmutableArray<TypedConstant> arguments) 1875internal virtual SynthesizedAttributeData TrySynthesizeMemorySafetyRulesAttribute(ImmutableArray<TypedConstant> arguments) 1888internal virtual SynthesizedAttributeData SynthesizeNullablePublicOnlyAttribute(ImmutableArray<TypedConstant> arguments) 1894protected virtual SynthesizedAttributeData TrySynthesizeIsReadOnlyAttribute() 1900protected virtual SynthesizedAttributeData TrySynthesizeRequiresLocationAttribute() 1906internal SynthesizedAttributeData TrySynthesizeRequiresUnsafeAttribute() 1911protected virtual SynthesizedAttributeData TrySynthesizeRequiresUnsafeAttributeCore() 1917protected virtual SynthesizedAttributeData TrySynthesizeParamCollectionAttribute() 1923protected virtual SynthesizedAttributeData TrySynthesizeExtensionMarkerAttribute(string markerName) 1936protected virtual SynthesizedAttributeData TrySynthesizeIsUnmanagedAttribute() 1942protected 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 (4)
177return SynthesizedAttributeData.Create(ModuleBeingBuilt.Compilation, ctor, 186return SynthesizedAttributeData.Create(ModuleBeingBuilt.Compilation, ctor, 191return SynthesizedAttributeData.Create(ModuleBeingBuilt.Compilation, ctor, constructorArguments, namedArguments); 203return 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)
394internal SynthesizedAttributeData? TrySynthesizeAttribute( 440return SynthesizedAttributeData.Create(this, ctorSymbol, arguments, namedStringArguments); 443internal SynthesizedAttributeData? TrySynthesizeAttribute( 455return SynthesizedAttributeData.Create( 462internal SynthesizedAttributeData? SynthesizeDecimalConstantAttribute(decimal value) 485internal SynthesizedAttributeData? SynthesizeDateTimeConstantAttribute(DateTime value) 494internal SynthesizedAttributeData? SynthesizeDebuggerBrowsableNeverAttribute() 508internal SynthesizedAttributeData? SynthesizeDebuggerStepThroughAttribute() 740internal SynthesizedAttributeData? SynthesizeDebuggableAttribute() 817internal SynthesizedAttributeData? SynthesizeDynamicAttribute(TypeSymbol type, int customModifiersCount, RefKind refKindOpt = RefKind.None) 837internal SynthesizedAttributeData? SynthesizeTupleNamesAttribute(TypeSymbol type) 853internal SynthesizedAttributeData? SynthesizeAttributeUsageAttribute(AttributeTargets targets, bool allowMultiple, bool inherited)
Symbols\Source\ExtensionGroupingInfo.cs (2)
790SynthesizedAttributeData? extensionAttribute = ExtensionMarkerTypes[0].UnderlyingExtensions[0].DeclaringCompilation.TrySynthesizeAttribute(WellKnownMember.System_Runtime_CompilerServices_ExtensionAttribute__ctor); 830if (attribute is SynthesizedAttributeData synthesized &&
Symbols\Source\SourceAssemblySymbol.cs (1)
1837var attribute = _compilation.TrySynthesizeAttribute(
Symbols\Source\SourceMethodSymbol.cs (2)
254AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(attributeData)); 262AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(attributeData));
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1845SynthesizedAttributeData.Create(DeclaringCompilation, parameterlessConstructor, arguments: [], namedArguments: []));
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
857AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(_property.MaybeNullAttributeIfExists)); 861AddSynthesizedAttribute(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)
211var attrData = defaultValue.SpecialType switch
Symbols\TypeSymbolExtensions.cs (1)
2153static void addIfNotNull(ArrayBuilder<Cci.ICustomAttribute> builder, SynthesizedAttributeData? attr)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests_Synthesized.cs (2)
2242var attribute = comp.TrySynthesizeAttribute(WellKnownMember.System_Diagnostics_DebuggerDisplayAttribute__ctor); 2246var attribute2 = comp.TrySynthesizeAttribute(
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
2363internal static IEnumerable<string> GetAttributeNames(ImmutableArray<SynthesizedAttributeData> attributes)