C# Class Microsoft.CodeAnalysis.CommonCompiler.CompilerEmitStreamProvider

This implementation of Compilation.EmitStreamProvider will delay the creation of the PE / PDB file until the compiler determines the compilation has succeeded. This prevents the compiler from deleting output from the previous compilation when a new compilation fails.
Inheritance: Microsoft.CodeAnalysis.Compilation.EmitStreamProvider, IDisposable
Show file Open project: stark-lang/stark-roslyn

Public Methods

Method Description
Close ( Microsoft.CodeAnalysis.DiagnosticBag diagnostics ) : void
CreateStream ( Microsoft.CodeAnalysis.DiagnosticBag diagnostics ) : Stream

Private Methods

Method Description
CompilerEmitStreamProvider ( Microsoft.CodeAnalysis.CommonCompiler compiler, string filePath ) : System
OpenFileStream ( ) : Stream
ReportOpenFileDiagnostic ( Microsoft.CodeAnalysis.DiagnosticBag diagnostics, Exception e ) : void

Method Details

Close() public method

public Close ( Microsoft.CodeAnalysis.DiagnosticBag diagnostics ) : void
diagnostics Microsoft.CodeAnalysis.DiagnosticBag
return void

CreateStream() public method

public CreateStream ( Microsoft.CodeAnalysis.DiagnosticBag diagnostics ) : Stream
diagnostics Microsoft.CodeAnalysis.DiagnosticBag
return Stream