2 types derived from SynthesizedAttributeData
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Source\SynthesizedAttributeData.cs (2)
27
private sealed class FromMethodAndArguments :
SynthesizedAttributeData
67
private sealed class FromSourceAttributeData :
SynthesizedAttributeData
96 references to SynthesizedAttributeData
Microsoft.CodeAnalysis.CSharp (93)
Emitter\Model\PEAssemblyBuilder.cs (28)
206
internal override
SynthesizedAttributeData
SynthesizeEmbeddedAttribute()
209
return
SynthesizedAttributeData
.Create(
216
internal override
SynthesizedAttributeData
SynthesizeNullableAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments)
221
return
SynthesizedAttributeData
.Create(
231
internal override
SynthesizedAttributeData
SynthesizeNullableContextAttribute(ImmutableArray<TypedConstant> arguments)
235
return
SynthesizedAttributeData
.Create(
245
internal override
SynthesizedAttributeData
SynthesizeNullablePublicOnlyAttribute(ImmutableArray<TypedConstant> arguments)
249
return
SynthesizedAttributeData
.Create(
259
internal override
SynthesizedAttributeData
SynthesizeNativeIntegerAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments)
264
return
SynthesizedAttributeData
.Create(
274
internal override
SynthesizedAttributeData
SynthesizeScopedRefAttribute(WellKnownMember member)
278
return
SynthesizedAttributeData
.Create(
288
internal override
SynthesizedAttributeData
SynthesizeRefSafetyRulesAttribute(ImmutableArray<TypedConstant> arguments)
292
return
SynthesizedAttributeData
.Create(
302
internal override
SynthesizedAttributeData
TrySynthesizeMemorySafetyRulesAttribute(ImmutableArray<TypedConstant> arguments)
306
return
SynthesizedAttributeData
.Create(
316
protected override
SynthesizedAttributeData
TrySynthesizeIsReadOnlyAttribute()
320
return
SynthesizedAttributeData
.Create(
330
protected override
SynthesizedAttributeData
TrySynthesizeRequiresLocationAttribute()
334
return
SynthesizedAttributeData
.Create(
344
protected override
SynthesizedAttributeData
TrySynthesizeParamCollectionAttribute()
348
return
SynthesizedAttributeData
.Create(
358
protected override
SynthesizedAttributeData
TrySynthesizeExtensionMarkerAttribute(string markerName)
362
return
SynthesizedAttributeData
.Create(
377
protected override
SynthesizedAttributeData
TrySynthesizeIsUnmanagedAttribute()
381
return
SynthesizedAttributeData
.Create(
391
protected override
SynthesizedAttributeData
TrySynthesizeIsByRefLikeAttribute()
395
return
SynthesizedAttributeData
.Create(
Emitter\Model\PEModuleBuilder.cs (28)
1642
internal abstract
SynthesizedAttributeData
SynthesizeEmbeddedAttribute();
1644
internal
SynthesizedAttributeData
SynthesizeIsReadOnlyAttribute(Symbol symbol)
1655
internal
SynthesizedAttributeData
SynthesizeRequiresLocationAttribute(ParameterSymbol symbol)
1666
internal
SynthesizedAttributeData
SynthesizeParamCollectionAttribute(ParameterSymbol symbol)
1677
internal
SynthesizedAttributeData
SynthesizeExtensionMarkerAttribute(Symbol symbol, string markerName)
1688
internal
SynthesizedAttributeData
SynthesizeIsUnmanagedAttribute(Symbol symbol)
1699
internal
SynthesizedAttributeData
SynthesizeIsByRefLikeAttribute(Symbol symbol)
1715
internal
SynthesizedAttributeData
SynthesizeNullableAttributeIfNecessary(Symbol symbol, byte? nullableContextValue, TypeWithAnnotations type)
1726
SynthesizedAttributeData
attribute;
1754
internal
SynthesizedAttributeData
SynthesizeNullableAttributeIfNecessary(byte? nullableContextValue, byte nullableValue)
1768
internal virtual
SynthesizedAttributeData
SynthesizeNullableAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments)
1775
internal
SynthesizedAttributeData
SynthesizeNullableContextAttribute(Symbol symbol, byte value)
1788
internal virtual
SynthesizedAttributeData
SynthesizeNullableContextAttribute(ImmutableArray<TypedConstant> arguments)
1795
internal
SynthesizedAttributeData
SynthesizePreserveBaseOverridesAttribute()
1800
internal
SynthesizedAttributeData
SynthesizeNativeIntegerAttribute(Symbol symbol, TypeSymbol type)
1818
SynthesizedAttributeData
attribute;
1837
internal virtual
SynthesizedAttributeData
SynthesizeNativeIntegerAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments)
1846
internal
SynthesizedAttributeData
SynthesizeScopedRefAttribute(ParameterSymbol symbol, ScopedKind scope)
1861
internal virtual
SynthesizedAttributeData
SynthesizeScopedRefAttribute(WellKnownMember member)
1868
internal virtual
SynthesizedAttributeData
SynthesizeRefSafetyRulesAttribute(ImmutableArray<TypedConstant> arguments)
1875
internal virtual
SynthesizedAttributeData
TrySynthesizeMemorySafetyRulesAttribute(ImmutableArray<TypedConstant> arguments)
1888
internal virtual
SynthesizedAttributeData
SynthesizeNullablePublicOnlyAttribute(ImmutableArray<TypedConstant> arguments)
1894
protected virtual
SynthesizedAttributeData
TrySynthesizeIsReadOnlyAttribute()
1900
protected virtual
SynthesizedAttributeData
TrySynthesizeRequiresLocationAttribute()
1906
protected virtual
SynthesizedAttributeData
TrySynthesizeParamCollectionAttribute()
1912
protected virtual
SynthesizedAttributeData
TrySynthesizeExtensionMarkerAttribute(string markerName)
1925
protected virtual
SynthesizedAttributeData
TrySynthesizeIsUnmanagedAttribute()
1931
protected virtual
SynthesizedAttributeData
TrySynthesizeIsByRefLikeAttribute()
Emitter\Model\PENetModuleBuilder.cs (1)
28
internal override
SynthesizedAttributeData
SynthesizeEmbeddedAttribute()
Emitter\Model\SourceAssemblySymbolAdapter.cs (1)
26
var
referenceAssemblyAttribute = this.DeclaringCompilation
Emitter\NoPia\EmbeddedType.cs (2)
262
return
SynthesizedAttributeData
.Create(TypeManager.ModuleBeingBuilt.Compilation, ctor, ImmutableArray<TypedConstant>.Empty, ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty);
278
return
SynthesizedAttributeData
.Create(TypeManager.ModuleBeingBuilt.Compilation, ctor,
Emitter\NoPia\EmbeddedTypesManager.cs (4)
177
return
SynthesizedAttributeData
.Create(ModuleBeingBuilt.Compilation, ctor,
186
return
SynthesizedAttributeData
.Create(ModuleBeingBuilt.Compilation, ctor,
191
return
SynthesizedAttributeData
.Create(ModuleBeingBuilt.Compilation, ctor, constructorArguments, namedArguments);
203
return
SynthesizedAttributeData
.Create(ModuleBeingBuilt.Compilation, ctor, constructorArguments, namedArguments);
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TemplateSymbol.cs (1)
177
private
SynthesizedAttributeData
TrySynthesizeDebuggerDisplayAttribute()
Symbols\Attributes\RetargetingAttributeData.cs (1)
30
Debug.Assert(underlying is SourceAttributeData or
SynthesizedAttributeData
);
Symbols\Compilation_WellKnownMembers.cs (12)
394
internal
SynthesizedAttributeData
? TrySynthesizeAttribute(
440
return
SynthesizedAttributeData
.Create(this, ctorSymbol, arguments, namedStringArguments);
443
internal
SynthesizedAttributeData
? TrySynthesizeAttribute(
455
return
SynthesizedAttributeData
.Create(
462
internal
SynthesizedAttributeData
? SynthesizeDecimalConstantAttribute(decimal value)
485
internal
SynthesizedAttributeData
? SynthesizeDateTimeConstantAttribute(DateTime value)
494
internal
SynthesizedAttributeData
? SynthesizeDebuggerBrowsableNeverAttribute()
508
internal
SynthesizedAttributeData
? SynthesizeDebuggerStepThroughAttribute()
728
internal
SynthesizedAttributeData
? SynthesizeDebuggableAttribute()
805
internal
SynthesizedAttributeData
? SynthesizeDynamicAttribute(TypeSymbol type, int customModifiersCount, RefKind refKindOpt = RefKind.None)
825
internal
SynthesizedAttributeData
? SynthesizeTupleNamesAttribute(TypeSymbol type)
841
internal
SynthesizedAttributeData
? SynthesizeAttributeUsageAttribute(AttributeTargets targets, bool allowMultiple, bool inherited)
Symbols\Source\ExtensionGroupingInfo.cs (2)
790
SynthesizedAttributeData
? extensionAttribute = ExtensionMarkerTypes[0].UnderlyingExtensions[0].DeclaringCompilation.TrySynthesizeAttribute(WellKnownMember.System_Runtime_CompilerServices_ExtensionAttribute__ctor);
830
if (attribute is
SynthesizedAttributeData
synthesized &&
Symbols\Source\SourceAssemblySymbol.cs (1)
1837
var
attribute = _compilation.TrySynthesizeAttribute(
Symbols\Source\SourceMethodSymbol.cs (2)
255
AddSynthesizedAttribute(ref attributes,
SynthesizedAttributeData
.Create(attributeData));
263
AddSynthesizedAttribute(ref attributes,
SynthesizedAttributeData
.Create(attributeData));
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1845
SynthesizedAttributeData
.Create(DeclaringCompilation, parameterlessConstructor, arguments: [], namedArguments: []));
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
839
AddSynthesizedAttribute(ref attributes,
SynthesizedAttributeData
.Create(_property.MaybeNullAttributeIfExists));
843
AddSynthesizedAttribute(ref attributes,
SynthesizedAttributeData
.Create(_property.NotNullAttributeIfExists));
Symbols\Source\SynthesizedAttributeData.cs (2)
17
public static
SynthesizedAttributeData
Create(CSharpCompilation compilation, MethodSymbol wellKnownMember, ImmutableArray<TypedConstant> arguments, ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments)
22
public static
SynthesizedAttributeData
Create(SourceAttributeData original)
Symbols\Synthesized\SynthesizedAccessorValueParameterSymbol.cs (2)
94
AddSynthesizedAttribute(ref attributes,
SynthesizedAttributeData
.Create(property.DisallowNullAttributeIfExists));
98
AddSynthesizedAttribute(ref attributes,
SynthesizedAttributeData
.Create(property.AllowNullAttributeIfExists));
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
208
SynthesizedAttributeData
.Create(
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
211
var
attrData = defaultValue.SpecialType switch
Symbols\TypeSymbolExtensions.cs (1)
2153
static void addIfNotNull(ArrayBuilder<Cci.ICustomAttribute> builder,
SynthesizedAttributeData
? attr)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests_Synthesized.cs (2)
2202
var
attribute = comp.TrySynthesizeAttribute(WellKnownMember.System_Diagnostics_DebuggerDisplayAttribute__ctor);
2206
var
attribute2 = comp.TrySynthesizeAttribute(
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
CSharpTestBase.cs (1)
2363
internal static IEnumerable<string> GetAttributeNames(ImmutableArray<
SynthesizedAttributeData
> attributes)