C# Class Cruncher.Preprocessors.Coffee.CoffeeScriptCompiler

The CoffeeScript compiler. Many thanks here to Andrey Taritsyn's
Inheritance: IDisposable
ファイルを表示 Open project: JimBobSquarePants/Cruncher Class Usage Examples

Public Methods

Method Description
CoffeeScriptCompiler ( Func javascriptEngineFactory ) : System

Initializes a new instance of the CoffeeScriptCompiler class.

Compile ( string input ) : string

Gets a string containing the compiled CoffeeScript result.

Dispose ( ) : void

Disposes the object and frees resources for the Garbage Collector.

Private Methods

Method Description
Dispose ( bool disposing ) : void

Disposes the object and frees resources for the Garbage Collector.

FormatErrorDetails ( JToken errorDetails ) : string

Generates a detailed error message

Initialize ( ) : void

Initializes CoffeeScript compiler

Method Details

CoffeeScriptCompiler() public method

Initializes a new instance of the CoffeeScriptCompiler class.
public CoffeeScriptCompiler ( Func javascriptEngineFactory ) : System
javascriptEngineFactory Func /// The javascript engine factory. ///
return System

Compile() public method

Gets a string containing the compiled CoffeeScript result.
public Compile ( string input ) : string
input string /// The input to compile. ///
return string

Dispose() public method

Disposes the object and frees resources for the Garbage Collector.
public Dispose ( ) : void
return void