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
144 references to SynthesizedAttributeData
Microsoft.CodeAnalysis.CSharp (142)
Emitter\Model\MethodSymbolAdapter.cs (1)
513
ArrayBuilder<
SynthesizedAttributeData
> synthesized = null;
Emitter\Model\PEAssemblyBuilder.cs (24)
197
internal override
SynthesizedAttributeData
SynthesizeEmbeddedAttribute()
200
return
SynthesizedAttributeData
.Create(
207
internal override
SynthesizedAttributeData
SynthesizeNullableAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments)
212
return
SynthesizedAttributeData
.Create(
222
internal override
SynthesizedAttributeData
SynthesizeNullableContextAttribute(ImmutableArray<TypedConstant> arguments)
226
return
SynthesizedAttributeData
.Create(
236
internal override
SynthesizedAttributeData
SynthesizeNullablePublicOnlyAttribute(ImmutableArray<TypedConstant> arguments)
240
return
SynthesizedAttributeData
.Create(
250
internal override
SynthesizedAttributeData
SynthesizeNativeIntegerAttribute(WellKnownMember member, ImmutableArray<TypedConstant> arguments)
255
return
SynthesizedAttributeData
.Create(
265
internal override
SynthesizedAttributeData
SynthesizeScopedRefAttribute(WellKnownMember member)
269
return
SynthesizedAttributeData
.Create(
279
internal override
SynthesizedAttributeData
SynthesizeRefSafetyRulesAttribute(ImmutableArray<TypedConstant> arguments)
283
return
SynthesizedAttributeData
.Create(
293
protected override
SynthesizedAttributeData
TrySynthesizeIsReadOnlyAttribute()
297
return
SynthesizedAttributeData
.Create(
307
protected override
SynthesizedAttributeData
TrySynthesizeRequiresLocationAttribute()
311
return
SynthesizedAttributeData
.Create(
321
protected override
SynthesizedAttributeData
TrySynthesizeParamCollectionAttribute()
325
return
SynthesizedAttributeData
.Create(
335
protected override
SynthesizedAttributeData
TrySynthesizeIsUnmanagedAttribute()
339
return
SynthesizedAttributeData
.Create(
349
protected override
SynthesizedAttributeData
TrySynthesizeIsByRefLikeAttribute()
353
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 (2)
21
ArrayBuilder<
SynthesizedAttributeData
> synthesized = null;
26
var
referenceAssemblyAttribute = this.DeclaringCompilation
Emitter\Model\SymbolAdapter.cs (3)
98
ArrayBuilder<
SynthesizedAttributeData
> synthesized = null;
113
ArrayBuilder<
SynthesizedAttributeData
> synthesized,
130
ArrayBuilder<
SynthesizedAttributeData
> synthesized,
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);
Lowering\IteratorRewriter\IteratorConstructor.cs (1)
31
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Lowering\MethodToClassRewriter.cs (1)
760
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Lowering\StateMachineRewriter\SynthesizedStateMachineMethod.cs (1)
121
internal sealed override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Lowering\SynthesizedMethodBaseSymbol.cs (1)
75
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.DelegateTemplateSymbol.cs (1)
246
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.FieldSymbol.cs (1)
146
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertyAccessorSymbol.cs (1)
86
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (1)
168
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TemplateSymbol.cs (2)
160
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
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\Metadata\PE\PEMethodSymbol.cs (2)
1656
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
1661
internal override void AddSynthesizedReturnTypeAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\MethodSymbol.cs (2)
1151
internal virtual void AddSynthesizedReturnTypeAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
1269
protected static void AddRequiredMembersMarkerAttributes(ref ArrayBuilder<
SynthesizedAttributeData
> attributes, MethodSymbol methodToAttribute)
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
388
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Source\SourceAssemblySymbol.cs (2)
1836
var
attribute = _compilation.TrySynthesizeAttribute(
1938
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Source\SourceConstructorSymbolBase.cs (1)
263
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Source\SourceEventFieldSymbol.cs (1)
59
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Source\SourceEventSymbol.cs (1)
324
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
>? attributes)
Symbols\Source\SourceFixedFieldSymbol.cs (2)
40
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
206
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5330
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Source\SourceMemberFieldSymbol.cs (1)
103
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Source\SourceMemberMethodSymbol.cs (1)
1008
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Source\SourceModuleSymbol.cs (1)
624
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1662
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (1)
95
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Source\SourceParameterSymbolBase.cs (1)
69
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Source\SourcePropertyAccessorSymbol.cs (6)
789
internal sealed override void AddSynthesizedReturnTypeAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
796
AddSynthesizedAttribute(ref attributes,
SynthesizedAttributeData
.Create(_property.MaybeNullAttributeIfExists));
800
AddSynthesizedAttribute(ref attributes,
SynthesizedAttributeData
.Create(_property.NotNullAttributeIfExists));
804
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
818
AddSynthesizedAttribute(ref attributes,
SynthesizedAttributeData
.Create(attributeData));
826
AddSynthesizedAttribute(ref attributes,
SynthesizedAttributeData
.Create(attributeData));
Symbols\Source\SourcePropertySymbolBase.cs (1)
1363
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Source\SourceTypeParameterSymbol.cs (1)
385
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
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\Symbol.cs (4)
873
internal virtual void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
880
internal static void AddSynthesizedAttribute(ref ArrayBuilder<
SynthesizedAttributeData
> attributes,
SynthesizedAttributeData
attribute)
886
attributes = new ArrayBuilder<
SynthesizedAttributeData
>(1);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
920
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Synthesized\Records\SynthesizedRecordCopyCtor.cs (1)
75
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (2)
92
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
158
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperatorBase.cs (1)
81
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Synthesized\Records\SynthesizedRecordOrdinaryMethod.cs (1)
75
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Synthesized\SynthesizedAccessorValueParameterSymbol.cs (3)
80
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
89
AddSynthesizedAttribute(ref attributes,
SynthesizedAttributeData
.Create(property.DisallowNullAttributeIfExists));
93
AddSynthesizedAttribute(ref attributes,
SynthesizedAttributeData
.Create(property.AllowNullAttributeIfExists));
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
40
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Synthesized\SynthesizedContainer.cs (1)
58
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
175
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
381
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Synthesized\SynthesizedEnumValueFieldSymbol.cs (1)
38
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Synthesized\SynthesizedEventAccessorSymbol.cs (1)
73
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Synthesized\SynthesizedFieldSymbolBase.cs (1)
46
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (1)
74
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (2)
188
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
197
SynthesizedAttributeData
.Create(
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
322
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\Synthesized\SynthesizedParameterSymbol.cs (2)
148
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
213
var
attrData = defaultValue.SpecialType switch
Symbols\Synthesized\SynthesizedSubstitutedTypeParameterSymbol.cs (1)
35
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
Symbols\TypeSymbolExtensions.cs (1)
2107
static void addIfNotNull(ArrayBuilder<Cci.ICustomAttribute> builder,
SynthesizedAttributeData
? attr)
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
74
internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<
SynthesizedAttributeData
> attributes)
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(