20 references to AddSynthesizedDefinition
Microsoft.CodeAnalysis.CSharp (13)
Compiler\MethodCompiler.cs (4)
240moduleBeingBuilt.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)
1521CompilationState.ModuleBuilderOpt.AddSynthesizedDefinition(translatedLambdaContainer, synthesizedMethod.GetCciAdapter());
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (1)
498F.ModuleBuilderOpt.AddSynthesizedDefinition(stateMachineType, finallyMethod.GetCciAdapter());
Lowering\MethodToClassRewriter.cs (1)
359this.CompilationState.ModuleBuilderOpt.AddSynthesizedDefinition(containingType, wrapper.GetCciAdapter());
Lowering\StateMachineRewriter\StateMachineRewriter.cs (3)
337F.ModuleBuilderOpt.AddSynthesizedDefinition(F.CurrentType, result.GetCciAdapter()); 348F.ModuleBuilderOpt.AddSynthesizedDefinition(F.CurrentType, getter.GetCciAdapter()); 357F.ModuleBuilderOpt.AddSynthesizedDefinition(F.CurrentType, result.GetCciAdapter());
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
557moduleBeingBuilt.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)
1072CompilationState.ModuleBuilderOpt.AddSynthesizedDefinition(translatedLambdaContainer, synthesizedMethod.GetCciAdapter())
Lowering\MethodToClassRewriter\MethodToClassRewriter.MyBaseMyClassWrapper.vb (1)
94Me.CompilationState.ModuleBuilderOpt.AddSynthesizedDefinition(containingType, wrapperMethod.GetCciAdapter())
Lowering\SyntheticBoundNodeFactory.vb (1)
104[module].AddSynthesizedDefinition(containingType, method.GetCciAdapter())