/// <summary> /// Traverse the symbol table and call Module.AddSynthesizedDefinition for each /// synthesized explicit implementation stub that has been generated (e.g. when the real /// implementation doesn't have the appropriate custom modifiers). /// </summary> public static void ProcessSynthesizedMembers( CSharpCompilation compilation, PEModuleBuilder moduleBeingBuilt, CancellationToken cancellationToken) { Debug.Assert(moduleBeingBuilt != null); var compiler = new SynthesizedMetadataCompiler(moduleBeingBuilt, cancellationToken); compiler.Visit(compilation.SourceModule.GlobalNamespace); }
public static void ProcessSynthesizedMembers( CSharpCompilation compilation, PEModuleBuilder moduleBeingBuilt, CancellationToken cancellationToken) { Debug.Assert(moduleBeingBuilt != null); var compiler = new SynthesizedMetadataCompiler(moduleBeingBuilt, cancellationToken); compiler.Visit(compilation.SourceModule.GlobalNamespace); }
/// <summary> /// Traverse the symbol table and call Module.AddSynthesizedDefinition for each /// synthesized explicit implementation stub that has been generated (e.g. when the real /// implementation doesn't have the appropriate custom modifiers). /// </summary> public static void ProcessSynthesizedMembers( CSharpCompilation compilation, PEModuleBuilder moduleBeingBuilt, CancellationToken cancellationToken) { Debug.Assert(moduleBeingBuilt != null); using (Logger.LogBlock(FunctionId.CSharp_Compiler_CompileSynthesizedMethodMetadata, message: compilation.AssemblyName, cancellationToken: cancellationToken)) { var compiler = new SynthesizedMetadataCompiler(moduleBeingBuilt, cancellationToken); compiler.Visit(compilation.SourceModule.GlobalNamespace); } }