134 references to AddSynthesizedAttribute
Microsoft.CodeAnalysis.CSharp (134)
Emitter\Model\SourceAssemblySymbolAdapter.cs (1)
28Symbol.AddSynthesizedAttribute(ref synthesized, referenceAssemblyAttribute);
Lowering\ClosureConversion\LambdaCapturedVariable.cs (1)
196AddSynthesizedAttribute(ref attributes, attr);
Lowering\IteratorRewriter\IteratorConstructor.cs (1)
36AddSynthesizedAttribute(ref attributes, compilation.TrySynthesizeAttribute(WellKnownMember.System_Diagnostics_DebuggerHiddenAttribute__ctor));
Lowering\StateMachineRewriter\StateMachineFieldSymbol.cs (1)
111AddSynthesizedAttribute(ref attributes, attr);
Lowering\StateMachineRewriter\SynthesizedStateMachineMethod.cs (1)
124AddSynthesizedAttribute(ref attributes, compilation.TrySynthesizeAttribute(WellKnownMember.System_Diagnostics_DebuggerHiddenAttribute__ctor));
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.DelegateTemplateSymbol.cs (1)
256AddSynthesizedAttribute(ref attributes,
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.FieldSymbol.cs (1)
152AddSynthesizedAttribute(ref attributes, manager.Compilation.TrySynthesizeAttribute(
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (1)
172AddSynthesizedAttribute(ref attributes, Manager.Compilation.TrySynthesizeAttribute(
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TemplateSymbol.cs (2)
168AddSynthesizedAttribute(ref attributes, Manager.Compilation.TrySynthesizeAttribute( 173AddSynthesizedAttribute(ref attributes, TrySynthesizeDebuggerDisplayAttribute());
Symbols\Extensions\SourceExtensionImplementationMethodSymbol.cs (1)
76AddSynthesizedAttribute(ref attributes, attr);
Symbols\MethodSymbol.cs (8)
1172AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeIsReadOnlyAttribute(this)); 1180AddSynthesizedAttribute(ref attributes, compilation.SynthesizeDynamicAttribute(type.Type, type.CustomModifiers.Length + this.RefCustomModifiers.Length, this.RefKind)); 1185AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeNativeIntegerAttribute(this, type.Type)); 1190AddSynthesizedAttribute(ref attributes, compilation.SynthesizeTupleNamesAttribute(type.Type)); 1195AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeNullableAttributeIfNecessary(this, GetNullableContextValue(), type)); 1296AddSynthesizedAttribute(ref attributes, declaringCompilation.TrySynthesizeAttribute(WellKnownMember.System_ObsoleteAttribute__ctor, 1303AddSynthesizedAttribute(ref attributes, declaringCompilation.TrySynthesizeAttribute(WellKnownMember.System_Runtime_CompilerServices_CompilerFeatureRequiredAttribute__ctor, 1314AddSynthesizedAttribute(
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (5)
391AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeIsReadOnlyAttribute(this)); 399AddSynthesizedAttribute(ref attributes, 405AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeNativeIntegerAttribute(this, type.Type)); 410AddSynthesizedAttribute(ref attributes, 416AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeNullableAttributeIfNecessary(this, ContainingType.GetNullableContextValue(), type));
Symbols\Source\SourceAssemblySymbol.cs (6)
1953AddSynthesizedAttribute(ref attributes, _compilation.TrySynthesizeAttribute( 1977AddSynthesizedAttribute(ref attributes, _compilation.TrySynthesizeAttribute( 1996AddSynthesizedAttribute(ref attributes, _compilation.TrySynthesizeAttribute( 2014AddSynthesizedAttribute(ref attributes, _compilation.SynthesizeDebuggableAttribute()); 2029AddSynthesizedAttribute(ref attributes, _compilation.TrySynthesizeAttribute(WellKnownMember.System_Reflection_AssemblyKeyNameAttribute__ctor, ImmutableArray.Create(typedConstant))); 2039AddSynthesizedAttribute(ref attributes, _compilation.TrySynthesizeAttribute(WellKnownMember.System_Reflection_AssemblyKeyFileAttribute__ctor, ImmutableArray.Create(typedConstant)));
Symbols\Source\SourceEventFieldSymbol.cs (2)
64AddSynthesizedAttribute(ref attributes, compilation.TrySynthesizeAttribute(WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor)); 68AddSynthesizedAttribute(ref attributes, compilation.SynthesizeDebuggerBrowsableNeverAttribute());
Symbols\Source\SourceEventSymbol.cs (5)
395AddSynthesizedAttribute(ref attributes, compilation.SynthesizeDynamicAttribute(type.Type, type.CustomModifiers.Length)); 400AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeNativeIntegerAttribute(this, type.Type)); 405AddSynthesizedAttribute(ref attributes, 411AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeNullableAttributeIfNecessary(this, containingType.GetNullableContextValue(), type)); 416AddSynthesizedAttribute(ref attributes, moduleBuilder.TrySynthesizeRequiresUnsafeAttribute());
Symbols\Source\SourceFixedFieldSymbol.cs (2)
50AddSynthesizedAttribute(ref attributes, compilation.TrySynthesizeAttribute( 211AddSynthesizedAttribute(ref attributes, compilation.TrySynthesizeAttribute(WellKnownMember.System_Runtime_CompilerServices_UnsafeValueTypeAttribute__ctor));
Symbols\Source\SourceMemberContainerSymbol.cs (5)
6177AddSynthesizedAttribute(ref attributes, compilation.SynthesizeDynamicAttribute(baseType, customModifiersCount: 0)); 6182AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeNativeIntegerAttribute(this, baseType)); 6187AddSynthesizedAttribute(ref attributes, compilation.SynthesizeTupleNamesAttribute(baseType)); 6195AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeNullableContextAttribute(this, nullableContextValue)); 6200AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeNullableAttributeIfNecessary(this, nullableContextValue, TypeWithAnnotations.Create(baseType)));
Symbols\Source\SourceMemberFieldSymbol.cs (2)
129AddSynthesizedAttribute(ref attributes, compilation.SynthesizeDecimalConstantAttribute(value.DecimalValue)); 136AddSynthesizedAttribute(
Symbols\Source\SourceMethodSymbol.cs (15)
150AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeIsReadOnlyAttribute(target)); 157AddSynthesizedAttribute(ref attributes, moduleBuilder.TrySynthesizeRequiresUnsafeAttribute()); 163AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeNullableContextAttribute(target, nullableContextValue)); 169AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizePreserveBaseOverridesAttribute()); 188AddSynthesizedAttribute(ref attributes, 194AddSynthesizedAttribute(ref attributes, 200AddSynthesizedAttribute(ref attributes, 215AddSynthesizedAttribute(ref attributes, compilation.SynthesizeDebuggerStepThroughAttribute()); 232AddSynthesizedAttribute(ref attributes, 246AddSynthesizedAttribute(ref attributes, compilation.TrySynthesizeAttribute( 256AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(attributeData)); 264AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(attributeData)); 271AddSynthesizedAttribute(ref attributes, compilation.TrySynthesizeAttribute(WellKnownMember.System_Diagnostics_DebuggerHiddenAttribute__ctor)); 276AddSynthesizedAttribute(ref attributes, compilation.TrySynthesizeAttribute(WellKnownMember.System_Runtime_CompilerServices_CompilerFeatureRequiredAttribute__ctor, 283AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeExtensionMarkerAttribute(target, ((SourceNamedTypeSymbol)target.ContainingType).ExtensionMarkerName));
Symbols\Source\SourceModuleSymbol.cs (4)
673AddSynthesizedAttribute(ref attributes, compilation.TrySynthesizeAttribute( 681AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeRefSafetyRulesAttribute(version)); 687AddSynthesizedAttribute(ref attributes, moduleBuilder.TrySynthesizeMemorySafetyRulesAttribute(version)); 694AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeNullablePublicOnlyAttribute(includesInternals));
Symbols\Source\SourceNamedTypeSymbol.cs (12)
1745AddSynthesizedAttribute(ref attributes, compilation.TrySynthesizeAttribute(WellKnownMember.System_Runtime_CompilerServices_ExtensionAttribute__ctor)); 1750AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeIsByRefLikeAttribute(this)); 1764AddSynthesizedAttribute(ref attributes, compilation.TrySynthesizeAttribute(WellKnownMember.System_ObsoleteAttribute__ctor, 1771AddSynthesizedAttribute(ref attributes, compilation.TrySynthesizeAttribute(WellKnownMember.System_Runtime_CompilerServices_CompilerFeatureRequiredAttribute__ctor, 1779AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeIsReadOnlyAttribute(this)); 1787AddSynthesizedAttribute(ref attributes, compilation.TrySynthesizeAttribute( 1794AddSynthesizedAttribute(ref attributes, 1800AddSynthesizedAttribute( 1807AddSynthesizedAttribute( 1824AddSynthesizedAttribute( 1841AddSynthesizedAttribute( 1850AddSynthesizedAttribute(ref attributes, compilation.TrySynthesizeAttribute(WellKnownMember.System_Runtime_CompilerServices_UnionAttribute__ctor));
Symbols\Source\SourceParameterSymbolBase.cs (10)
79AddSynthesizedAttribute(ref attributes, compilation.TrySynthesizeAttribute(WellKnownMember.System_ParamArrayAttribute__ctor)); 83AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeParamCollectionAttribute(parameter)); 93AddSynthesizedAttribute(ref attributes, compilation.SynthesizeDecimalConstantAttribute(defaultValue.DecimalValue)); 100AddSynthesizedAttribute(ref attributes, compilation.SynthesizeDynamicAttribute(type.Type, type.CustomModifiers.Length + parameter.RefCustomModifiers.Length, parameter.RefKind)); 105AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeNativeIntegerAttribute(parameter, type.Type)); 110AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeScopedRefAttribute(parameter, parameter.EffectiveScope)); 115AddSynthesizedAttribute(ref attributes, 122AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeIsReadOnlyAttribute(parameter)); 125AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeRequiresLocationAttribute(parameter)); 131AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeNullableAttributeIfNecessary(parameter, parameter.GetNullableContextValue(), type));
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
857AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(_property.MaybeNullAttributeIfExists)); 861AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(_property.NotNullAttributeIfExists));
Symbols\Source\SourcePropertySymbolBase.cs (8)
1408AddSynthesizedAttribute(ref attributes, 1414AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeNativeIntegerAttribute(this, type.Type)); 1419AddSynthesizedAttribute(ref attributes, 1425AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeNullableAttributeIfNecessary(this, ContainingType.GetNullableContextValue(), type)); 1430AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeIsReadOnlyAttribute(this)); 1435AddSynthesizedAttribute(ref attributes, moduleBuilder.TrySynthesizeRequiresUnsafeAttribute()); 1440AddSynthesizedAttribute( 1447AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeExtensionMarkerAttribute(this, ((SourceNamedTypeSymbol)this.ContainingType).ExtensionMarkerName));
Symbols\Source\SourceTypeParameterSymbol.cs (2)
392AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeIsUnmanagedAttribute(this)); 398AddSynthesizedAttribute(
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
982AddSynthesizedAttribute(ref attributes, DeclaringCompilation.TrySynthesizeAttribute(WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor));
Symbols\Synthesized\Records\SynthesizedPrimaryConstructorParameterBackingFieldSymbol.cs (1)
78AddSynthesizedAttribute(ref attributes, attr);
Symbols\Synthesized\Records\SynthesizedRecordCopyCtor.cs (2)
80AddSynthesizedAttribute(ref attributes, compilation.TrySynthesizeAttribute(WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor)); 85AddSynthesizedAttribute(ref attributes, compilation.TrySynthesizeAttribute(WellKnownMember.System_Diagnostics_CodeAnalysis_SetsRequiredMembersAttribute__ctor));
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
99AddSynthesizedAttribute(ref attributes, compilation.TrySynthesizeAttribute(WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor));
Symbols\Synthesized\SynthesizedAccessorValueParameterSymbol.cs (2)
94AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(property.DisallowNullAttributeIfExists)); 98AddSynthesizedAttribute(ref attributes, SynthesizedAttributeData.Create(property.AllowNullAttributeIfExists));
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (2)
52AddSynthesizedAttribute(ref attributes, compilation.TrySynthesizeAttribute(WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor)); 57AddSynthesizedAttribute(ref attributes, compilation.SynthesizeDebuggerBrowsableNeverAttribute());
Symbols\Synthesized\SynthesizedContainer.cs (1)
71AddSynthesizedAttribute(ref attributes, compilation.TrySynthesizeAttribute(
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (3)
194AddSynthesizedAttribute( 198AddSynthesizedAttribute( 205AddSynthesizedAttribute(
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
425AddSynthesizedAttribute(ref attributes, this.DeclaringCompilation.SynthesizeDebuggerStepThroughAttribute());
Symbols\Synthesized\SynthesizedFieldSymbolBase.cs (5)
59AddSynthesizedAttribute(ref attributes, compilation.TrySynthesizeAttribute(WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor)); 67AddSynthesizedAttribute(ref attributes, compilation.SynthesizeDynamicAttribute(type, typeWithAnnotations.CustomModifiers.Length)); 72AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeNativeIntegerAttribute(this, type)); 79AddSynthesizedAttribute(ref attributes, 85AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeNullableAttributeIfNecessary(this, ContainingType.GetNullableContextValue(), typeWithAnnotations));
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (1)
90AddSynthesizedAttribute(
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
208AddSynthesizedAttribute(
Symbols\Synthesized\SynthesizedParameterSymbol.cs (11)
156AddSynthesizedAttribute(ref attributes, compilation.SynthesizeDynamicAttribute(type.Type, type.CustomModifiers.Length + this.RefCustomModifiers.Length, this.RefKind)); 161AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeNativeIntegerAttribute(this, type.Type)); 166AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeScopedRefAttribute(this, EffectiveScope)); 173AddSynthesizedAttribute(ref attributes, 179AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeNullableAttributeIfNecessary(this, GetNullableContextValue(), type)); 185AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeIsReadOnlyAttribute(this)); 188AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeRequiresLocationAttribute(this)); 194AddSynthesizedAttribute(ref attributes, compilation.TrySynthesizeAttribute(WellKnownMember.System_Diagnostics_CodeAnalysis_UnscopedRefAttribute__ctor)); 199AddSynthesizedAttribute(ref attributes, compilation.TrySynthesizeAttribute(WellKnownMember.System_ParamArrayAttribute__ctor)); 203AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeParamCollectionAttribute(this)); 217AddSynthesizedAttribute(ref attributes, attrData);
Symbols\Synthesized\SynthesizedTypeParameterSymbol.cs (2)
58AddSynthesizedAttribute(ref attributes, attr); 66AddSynthesizedAttribute(ref attributes, moduleBuilder.SynthesizeIsUnmanagedAttribute(this));
Symbols\Synthesized\SynthesizedUnionCtor.cs (1)
76AddSynthesizedAttribute(ref attributes, compilation.TrySynthesizeAttribute(WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor));