Search in sources :

Example 1 with MissingNativeVisitor

use of org.eclipse.ceylon.compiler.typechecker.analyzer.MissingNativeVisitor in project ceylon by eclipse.

the class JsCompiler method compileUnit.

/**
 * Compile one phased unit.
 */
private int compileUnit(PhasedUnit pu, JsIdentifierNames names) throws IOException {
    if (opts.isVerbose()) {
        logger.debug("Compiling " + pu.getUnitFile().getPath() + " to JS");
    }
    JsOutput jsout = getOutput(pu);
    MissingNativeVisitor mnv = new JsMissingNativeVisitor(opts.getCwd());
    pu.getCompilationUnit().visit(mnv);
    GenerateJsVisitor jsv = new GenerateJsVisitor(this, jsout, opts, names, pu.getTokens());
    pu.getCompilationUnit().visit(jsv);
    pu.getCompilationUnit().visit(errorVisitor);
    return jsv.getExitCode();
}
Also used : JsOutput(org.eclipse.ceylon.compiler.js.util.JsOutput) MissingNativeVisitor(org.eclipse.ceylon.compiler.typechecker.analyzer.MissingNativeVisitor)

Aggregations

JsOutput (org.eclipse.ceylon.compiler.js.util.JsOutput)1 MissingNativeVisitor (org.eclipse.ceylon.compiler.typechecker.analyzer.MissingNativeVisitor)1