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
85 references to SynthesizedAttributeData
Microsoft.CodeAnalysis.CSharp (83)
Emitter\Model\PEAssemblyBuilder.cs (24)
202
internal override
SynthesizedAttributeData
SynthesizeEmbeddedAttribute()
205
return
SynthesizedAttributeData
.Create(
212
internal override
SynthesizedAttributeData
SynthesizeNullableAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments)
217
return
SynthesizedAttributeData
.Create(
227
internal override
SynthesizedAttributeData
SynthesizeNullableContextAttribute(ImmutableArray<TypedConstant> arguments)
231
return
SynthesizedAttributeData
.Create(
241
internal override
SynthesizedAttributeData
SynthesizeNullablePublicOnlyAttribute(ImmutableArray<TypedConstant> arguments)
245
return
SynthesizedAttributeData
.Create(
255
internal override
SynthesizedAttributeData
SynthesizeNativeIntegerAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments)
260
return
SynthesizedAttributeData
.Create(
270
internal override
SynthesizedAttributeData
SynthesizeScopedRefAttribute(WellKnownMember member)
274
return
SynthesizedAttributeData
.Create(
284
internal override
SynthesizedAttributeData
SynthesizeRefSafetyRulesAttribute(ImmutableArray<TypedConstant> arguments)
288
return
SynthesizedAttributeData
.Create(
298
protected override
SynthesizedAttributeData
TrySynthesizeIsReadOnlyAttribute()
302
return
SynthesizedAttributeData
.Create(
312
protected override
SynthesizedAttributeData
TrySynthesizeRequiresLocationAttribute()
316
return
SynthesizedAttributeData
.Create(
326
protected override
SynthesizedAttributeData
TrySynthesizeParamCollectionAttribute()
330
return
SynthesizedAttributeData
.Create(
340
protected override
SynthesizedAttributeData
TrySynthesizeIsUnmanagedAttribute()
344
return
SynthesizedAttributeData
.Create(
354
protected override
SynthesizedAttributeData
TrySynthesizeIsByRefLikeAttribute()
358
return
SynthesizedAttributeData
.Create(
Emitter\Model\PEModuleBuilder.cs (25)
1490
internal abstract
SynthesizedAttributeData
SynthesizeEmbeddedAttribute();
1492
internal
SynthesizedAttributeData
SynthesizeIsReadOnlyAttribute(Symbol symbol)
1503
internal
SynthesizedAttributeData
SynthesizeRequiresLocationAttribute(ParameterSymbol symbol)
1514
internal
SynthesizedAttributeData
SynthesizeParamCollectionAttribute(ParameterSymbol symbol)
1525
internal
SynthesizedAttributeData
SynthesizeIsUnmanagedAttribute(Symbol symbol)
1536
internal
SynthesizedAttributeData
SynthesizeIsByRefLikeAttribute(Symbol symbol)
1552
internal
SynthesizedAttributeData
SynthesizeNullableAttributeIfNecessary(Symbol symbol, byte? nullableContextValue, TypeWithAnnotations type)
1563
SynthesizedAttributeData
attribute;
1591
internal
SynthesizedAttributeData
SynthesizeNullableAttributeIfNecessary(byte? nullableContextValue, byte nullableValue)
1605
internal virtual
SynthesizedAttributeData
SynthesizeNullableAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments)
1612
internal
SynthesizedAttributeData
SynthesizeNullableContextAttribute(Symbol symbol, byte value)
1625
internal virtual
SynthesizedAttributeData
SynthesizeNullableContextAttribute(ImmutableArray<TypedConstant> arguments)
1632
internal
SynthesizedAttributeData
SynthesizePreserveBaseOverridesAttribute()
1637
internal
SynthesizedAttributeData
SynthesizeNativeIntegerAttribute(Symbol symbol, TypeSymbol type)
1655
SynthesizedAttributeData
attribute;
1674
internal virtual
SynthesizedAttributeData
SynthesizeNativeIntegerAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments)
1683
internal
SynthesizedAttributeData
SynthesizeScopedRefAttribute(ParameterSymbol symbol, ScopedKind scope)
1698
internal virtual
SynthesizedAttributeData
SynthesizeScopedRefAttribute(WellKnownMember member)
1705
internal virtual
SynthesizedAttributeData
SynthesizeRefSafetyRulesAttribute(ImmutableArray<TypedConstant> arguments)
1719
internal virtual
SynthesizedAttributeData
SynthesizeNullablePublicOnlyAttribute(ImmutableArray<TypedConstant> arguments)
1725
protected virtual
SynthesizedAttributeData
TrySynthesizeIsReadOnlyAttribute()
1731
protected virtual
SynthesizedAttributeData
TrySynthesizeRequiresLocationAttribute()
1737
protected virtual
SynthesizedAttributeData
TrySynthesizeParamCollectionAttribute()
1743
protected virtual
SynthesizedAttributeData
TrySynthesizeIsUnmanagedAttribute()
1749
protected virtual
SynthesizedAttributeData
TrySynthesizeIsByRefLikeAttribute()
Emitter\Model\PENetModuleBuilder.cs (1)
27
internal override
SynthesizedAttributeData
SynthesizeEmbeddedAttribute()
Emitter\Model\SourceAssemblySymbolAdapter.cs (1)
26
var
referenceAssemblyAttribute = this.DeclaringCompilation
Emitter\NoPia\EmbeddedType.cs (2)
263
return
SynthesizedAttributeData
.Create(TypeManager.ModuleBeingBuilt.Compilation, ctor, ImmutableArray<TypedConstant>.Empty, ImmutableArray<KeyValuePair<string, TypedConstant>>.Empty);
279
return
SynthesizedAttributeData
.Create(TypeManager.ModuleBeingBuilt.Compilation, ctor,
Emitter\NoPia\EmbeddedTypesManager.cs (3)
138
return
SynthesizedAttributeData
.Create(ModuleBeingBuilt.Compilation, ctor,
147
return
SynthesizedAttributeData
.Create(ModuleBeingBuilt.Compilation, ctor,
152
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)
388
internal
SynthesizedAttributeData
? TrySynthesizeAttribute(
434
return
SynthesizedAttributeData
.Create(this, ctorSymbol, arguments, namedStringArguments);
437
internal
SynthesizedAttributeData
? TrySynthesizeAttribute(
449
return
SynthesizedAttributeData
.Create(
456
internal
SynthesizedAttributeData
? SynthesizeDecimalConstantAttribute(decimal value)
479
internal
SynthesizedAttributeData
? SynthesizeDateTimeConstantAttribute(DateTime value)
488
internal
SynthesizedAttributeData
? SynthesizeDebuggerBrowsableNeverAttribute()
502
internal
SynthesizedAttributeData
? SynthesizeDebuggerStepThroughAttribute()
698
internal
SynthesizedAttributeData
? SynthesizeDebuggableAttribute()
775
internal
SynthesizedAttributeData
? SynthesizeDynamicAttribute(TypeSymbol type, int customModifiersCount, RefKind refKindOpt = RefKind.None)
795
internal
SynthesizedAttributeData
? SynthesizeTupleNamesAttribute(TypeSymbol type)
811
internal
SynthesizedAttributeData
? SynthesizeAttributeUsageAttribute(AttributeTargets targets, bool allowMultiple, bool inherited)
Symbols\Source\SourceAssemblySymbol.cs (1)
1836
var
attribute = _compilation.TrySynthesizeAttribute(
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1779
SynthesizedAttributeData
.Create(DeclaringCompilation, parameterlessConstructor, arguments: [], namedArguments: []));
Symbols\Source\SourcePropertyAccessorSymbol.cs (4)
796
AddSynthesizedAttribute(ref attributes,
SynthesizedAttributeData
.Create(_property.MaybeNullAttributeIfExists));
800
AddSynthesizedAttribute(ref attributes,
SynthesizedAttributeData
.Create(_property.NotNullAttributeIfExists));
818
AddSynthesizedAttribute(ref attributes,
SynthesizedAttributeData
.Create(attributeData));
826
AddSynthesizedAttribute(ref attributes,
SynthesizedAttributeData
.Create(attributeData));
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)
89
AddSynthesizedAttribute(ref attributes,
SynthesizedAttributeData
.Create(property.DisallowNullAttributeIfExists));
93
AddSynthesizedAttribute(ref attributes,
SynthesizedAttributeData
.Create(property.AllowNullAttributeIfExists));
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
199
SynthesizedAttributeData
.Create(
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
213
var
attrData = defaultValue.SpecialType switch
Symbols\TypeSymbolExtensions.cs (1)
2107
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(