20 references to AddSynthesizedDefinition
Microsoft.CodeAnalysis.CSharp (13)
Compiler\MethodCompiler.cs (4)
240
moduleBeingBuilt.
AddSynthesizedDefinition
(entryPoint.ContainingType, synthesizedEntryPoint.GetCciAdapter());
607
_moduleBeingBuiltOpt.
AddSynthesizedDefinition
(sourceTypeSymbol, method.GetCciAdapter());
840
_moduleBeingBuiltOpt.
AddSynthesizedDefinition
(sourceTypeSymbol, synthesizedExplicitImpl.GetCciAdapter());
861
_moduleBeingBuiltOpt.
AddSynthesizedDefinition
(sourceProperty.ContainingType, synthesizedAccessor.GetCciAdapter());
Compiler\SynthesizedMetadataCompiler.cs (2)
77
_moduleBeingBuilt.
AddSynthesizedDefinition
(symbol, synthesizedExplicitImpl.GetCciAdapter());
102
_moduleBeingBuilt.
AddSynthesizedDefinition
(sourceProperty.ContainingType, synthesizedAccessor.GetCciAdapter());
Lowering\ClosureConversion\ClosureConversion.cs (1)
1521
CompilationState.ModuleBuilderOpt.
AddSynthesizedDefinition
(translatedLambdaContainer, synthesizedMethod.GetCciAdapter());
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (1)
498
F.ModuleBuilderOpt.
AddSynthesizedDefinition
(stateMachineType, finallyMethod.GetCciAdapter());
Lowering\MethodToClassRewriter.cs (1)
359
this.CompilationState.ModuleBuilderOpt.
AddSynthesizedDefinition
(containingType, wrapper.GetCciAdapter());
Lowering\StateMachineRewriter\StateMachineRewriter.cs (3)
337
F.ModuleBuilderOpt.
AddSynthesizedDefinition
(F.CurrentType, result.GetCciAdapter());
348
F.ModuleBuilderOpt.
AddSynthesizedDefinition
(F.CurrentType, getter.GetCciAdapter());
357
F.ModuleBuilderOpt.
AddSynthesizedDefinition
(F.CurrentType, result.GetCciAdapter());
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
557
moduleBeingBuilt.
AddSynthesizedDefinition
(template, method.GetCciAdapter());
Microsoft.CodeAnalysis.VisualBasic (7)
Compilation\MethodCompiler.vb (4)
627
_moduleBeingBuiltOpt.
AddSynthesizedDefinition
(sourceTypeSymbol, sharedDefaultConstructor.GetCciAdapter())
838
_moduleBeingBuiltOpt.
AddSynthesizedDefinition
(method.ContainingType, DirectCast(matchingStub.GetCciAdapter(), Microsoft.Cci.IMethodDefinition))
1362
_moduleBeingBuiltOpt.
AddSynthesizedDefinition
(containingType, getter.GetCciAdapter())
1400
_moduleBeingBuiltOpt.
AddSynthesizedDefinition
(containingType, setter.GetCciAdapter())
Lowering\LambdaRewriter\LambdaRewriter.vb (1)
1072
CompilationState.ModuleBuilderOpt.
AddSynthesizedDefinition
(translatedLambdaContainer, synthesizedMethod.GetCciAdapter())
Lowering\MethodToClassRewriter\MethodToClassRewriter.MyBaseMyClassWrapper.vb (1)
94
Me.CompilationState.ModuleBuilderOpt.
AddSynthesizedDefinition
(containingType, wrapperMethod.GetCciAdapter())
Lowering\SyntheticBoundNodeFactory.vb (1)
104
[module].
AddSynthesizedDefinition
(containingType, method.GetCciAdapter())