ISymbolWriter GetSymbolWriter(ModuleDefinition module, Disposable <Stream> stream) { var metadata = new MetadataBuilder(module, this); var writer = ImageWriter.CreateDebugWriter(module, metadata, stream); return(new PortablePdbWriter(metadata, module, writer)); }