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