public CommonPEModuleBuilder( IEnumerable <ResourceDescription> manifestResources, EmitOptions emitOptions, OutputKind outputKind, ModulePropertiesForSerialization serializationProperties, Compilation compilation) { Debug.Assert(manifestResources != null); Debug.Assert(serializationProperties != null); Debug.Assert(compilation != null); ManifestResources = manifestResources; OutputKind = outputKind; SerializationProperties = serializationProperties; _methodBodyMap = new Dictionary <IMethodSymbol, IMethodBody>(); }
protected PEModuleBuilder( TCompilation compilation, TSourceModuleSymbol sourceModule, ModulePropertiesForSerialization serializationProperties, IEnumerable <ResourceDescription> manifestResources, OutputKind outputKind, EmitOptions emitOptions, TModuleCompilationState compilationState) : base(manifestResources, emitOptions, outputKind, serializationProperties, compilation) { Debug.Assert(sourceModule != null); Debug.Assert(serializationProperties != null); Compilation = compilation; SourceModule = sourceModule; this.CompilationState = compilationState; }