use of org.eclipse.ceylon.langtools.source.tree.CompilationUnitTree in project ceylon by eclipse.
the class StatusPrinterTaskListener method started.
@Override
public void started(TaskEvent e) {
CompilationUnitTree compilationUnit = e.getCompilationUnit();
String path = e.getSourceFile().toUri().toString();
sp.clearLine();
switch(e.getKind()) {
case ANALYZE:
sp.log("Javac [typecheck]: " + path);
break;
case ENTER:
sp.log("Javac [enter]: " + path);
break;
case GENERATE:
sp.log("Javac [generate]: " + path);
break;
case PARSE:
// do not log parsing for Ceylon files
if (compilationUnit instanceof CeylonCompilationUnit == false)
sp.log("Javac [parse]: " + path);
break;
default:
break;
}
}
Aggregations