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();
}
Aggregations