public interface TranspilationHandler
| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
OUTPUT_LOGGER
This is the global output logger that should be used to print out
messages, warnings and errors 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.
|
static final org.apache.log4j.Logger OUTPUT_LOGGER
void report(JSweetProblem problem, SourcePosition sourcePosition, String message)
problem - the reported problemsourcePosition - the position in the source filemessage - the reported messagevoid onCompleted(JSweetTranspiler transpiler, boolean fullPass, SourceFile[] files)
transpiler - 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)