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