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