52 references to TrySynthesizeAttribute
Microsoft.CodeAnalysis.VisualBasic (50)
Emit\NoPia\EmbeddedTypesManager.vb (1)
525
Return compilation.
TrySynthesizeAttribute
(WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor)
Emit\PEModuleBuilder.vb (1)
180
Return Me.Compilation.
TrySynthesizeAttribute
(attributeConstructor)
Emit\SourceAssemblySymbolAdapter.vb (1)
20
TrySynthesizeAttribute
(WellKnownMember.System_Runtime_CompilerServices_ReferenceAssemblyAttribute__ctor, isOptionalUse:=True)
Lowering\MethodToClassRewriter\MethodToClassRewriter.MyBaseMyClassWrapper.vb (1)
219
AddSynthesizedAttribute(attributes, compilation.
TrySynthesizeAttribute
(WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor))
Lowering\StateMachineRewriter\SynthesizedContainer.vb (1)
317
compilation.
TrySynthesizeAttribute
(
Lowering\StateMachineRewriter\SynthesizedStateMachineMethod.vb (1)
199
AddSynthesizedAttribute(attributes, compilation.
TrySynthesizeAttribute
(WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor))
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousDelegate_TemplateSymbol.vb (2)
176
AddSynthesizedAttribute(attributes, Manager.Compilation.
TrySynthesizeAttribute
(
181
AddSynthesizedAttribute(attributes, Manager.Compilation.
TrySynthesizeAttribute
(
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_TemplateSymbol.vb (2)
150
AddSynthesizedAttribute(attributes, Manager.Compilation.
TrySynthesizeAttribute
(
182
Return Manager.Compilation.
TrySynthesizeAttribute
(
Symbols\Source\SourceAssemblySymbol.vb (6)
1484
AddSynthesizedAttribute(attributes, DeclaringCompilation.
TrySynthesizeAttribute
(WellKnownMember.Microsoft_VisualBasic_Embedded__ctor))
1505
AddSynthesizedAttribute(attributes, DeclaringCompilation.
TrySynthesizeAttribute
(
1523
AddSynthesizedAttribute(attributes, DeclaringCompilation.
TrySynthesizeAttribute
(
1561
AddSynthesizedAttribute(attributes, DeclaringCompilation.
TrySynthesizeAttribute
(
1577
AddSynthesizedAttribute(attributes, _compilation.
TrySynthesizeAttribute
(WellKnownMember.System_Reflection_AssemblyKeyNameAttribute__ctor, ImmutableArray.Create(typedConstant)))
1586
AddSynthesizedAttribute(attributes, _compilation.
TrySynthesizeAttribute
(WellKnownMember.System_Reflection_AssemblyKeyFileAttribute__ctor, ImmutableArray.Create(typedConstant)))
Symbols\Source\SourceFieldSymbol.vb (1)
672
AddSynthesizedAttribute(attributes, compilation.
TrySynthesizeAttribute
(
Symbols\Source\SourceMethodSymbol.vb (1)
1451
AddSynthesizedAttribute(attributes, compilation.
TrySynthesizeAttribute
(
Symbols\Source\SourceNamedTypeSymbol.vb (6)
2478
AddSynthesizedAttribute(attributes, compilation.
TrySynthesizeAttribute
(
2487
AddSynthesizedAttribute(attributes, compilation.
TrySynthesizeAttribute
(
2493
AddSynthesizedAttribute(attributes, compilation.
TrySynthesizeAttribute
(
2499
AddSynthesizedAttribute(attributes, compilation.
TrySynthesizeAttribute
(
2520
AddSynthesizedAttribute(attributes, compilation.
TrySynthesizeAttribute
(
2547
compilation.
TrySynthesizeAttribute
(
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (6)
991
AddSynthesizedAttribute(attributes, compilation.
TrySynthesizeAttribute
(
998
AddSynthesizedAttribute(attributes, compilation.
TrySynthesizeAttribute
(
1006
AddSynthesizedAttribute(attributes, compilation.
TrySynthesizeAttribute
(
1013
AddSynthesizedAttribute(attributes, compilation.
TrySynthesizeAttribute
(
1346
AddSynthesizedAttribute(attributes, _interface.ComClass.DeclaringCompilation.
TrySynthesizeAttribute
(
1842
AddSynthesizedAttribute(attributes, _interface.ComClass.DeclaringCompilation.
TrySynthesizeAttribute
(
Symbols\Source\SourceParameterSymbolBase.vb (2)
48
AddSynthesizedAttribute(attributes, compilation.
TrySynthesizeAttribute
(
61
AddSynthesizedAttribute(attributes, compilation.
TrySynthesizeAttribute
(
Symbols\Source\SourcePropertyAccessorSymbol.vb (1)
503
compilation.
TrySynthesizeAttribute
(WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor))
Symbols\Source\SourceWithEventsBackingFieldSymbol.vb (2)
68
AddSynthesizedAttribute(attributes, compilation.
TrySynthesizeAttribute
(
73
AddSynthesizedAttribute(attributes, compilation.
TrySynthesizeAttribute
(
Symbols\Source\SynthesizedEventAccessorSymbol.vb (1)
498
compilation.
TrySynthesizeAttribute
(WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor))
Symbols\Source\SynthesizedFieldSymbol.vb (1)
82
AddSynthesizedAttribute(attributes, compilation.
TrySynthesizeAttribute
(
Symbols\Source\SynthesizedMainTypeEntryPoint.vb (1)
89
DeclaringCompilation.
TrySynthesizeAttribute
(WellKnownMember.System_STAThreadAttribute__ctor))
Symbols\Source\SynthesizedWithEventsAccessorSymbol.vb (1)
96
compilation.
TrySynthesizeAttribute
(WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor))
Symbols\SynthesizedSymbols\SynthesizedBackingFieldBase.vb (1)
133
AddSynthesizedAttribute(attributes, compilation.
TrySynthesizeAttribute
(
Symbols\SynthesizedSymbols\SynthesizedInterfaceImplementationStubSymbol.vb (1)
189
AddSynthesizedAttribute(attributes, compilation.
TrySynthesizeAttribute
(WellKnownMember.System_Runtime_CompilerServices_CompilerGeneratedAttribute__ctor))
Symbols\SynthesizedSymbols\SynthesizedMethod.vb (1)
116
AddSynthesizedAttribute(attributes, sourceType.DeclaringCompilation.
TrySynthesizeAttribute
(
Symbols\WellKnownMembers.vb (8)
224
Return
TrySynthesizeAttribute
(ctor, ImmutableArray.Create(arg))
242
Return
TrySynthesizeAttribute
(
258
Return
TrySynthesizeAttribute
(
270
Return
TrySynthesizeAttribute
(WellKnownMember.System_Diagnostics_DebuggerHiddenAttribute__ctor)
274
Return
TrySynthesizeAttribute
(
286
Return
TrySynthesizeAttribute
(WellKnownMember.System_Diagnostics_DebuggerNonUserCodeAttribute__ctor)
298
Return
TrySynthesizeAttribute
(WellKnownMember.System_Diagnostics_DebuggerStepThroughAttribute__ctor)
713
Return
TrySynthesizeAttribute
(WellKnownMember.System_Runtime_CompilerServices_TupleElementNamesAttribute__ctorTransformNames, args)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Attributes\AttributeTests_Synthesized.vb (2)
1821
Dim attribute = comp.
TrySynthesizeAttribute
(WellKnownMember.System_Diagnostics_DebuggerDisplayAttribute__ctor)
1825
Dim attribute2 = comp.
TrySynthesizeAttribute
(