public class ConsoleTranspilationHandler extends Object implements TranspilationHandler
OUTPUT_LOGGER| Constructor and Description |
|---|
ConsoleTranspilationHandler()
Creates a transpilation handled reporting to the console.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onCompleted(JSweetTranspiler transpiler,
boolean fullPass,
SourceFile[] files)
This method is invoked when the tranpilation process ends.
|
void |
report(JSweetProblem problem,
SourcePosition sourcePosition,
String message)
This method is called by the transpiler when a problem needs to be
reported.
|
public ConsoleTranspilationHandler()
public void report(JSweetProblem problem, SourcePosition sourcePosition, String message)
TranspilationHandlerreport in interface TranspilationHandlerproblem - the reported problemsourcePosition - the position in the source filemessage - the reported messagepublic void onCompleted(JSweetTranspiler transpiler, boolean fullPass, SourceFile[] files)
TranspilationHandleronCompleted in interface TranspilationHandlertranspiler - the transpiler that generates this eventfullPass - true for a full transpilation (i.e. a non-watch mode
transpilation or first pass of a watch mode), false for an
incremental transpilation in the watch modefiles - the files that were transpiled (can be different from
transpiler.getWatchedFiles() in a non-full pass)