Search in sources :

Example 1 with CompilationUnitTree

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;
    }
}
Also used : CompilationUnitTree(org.eclipse.ceylon.langtools.source.tree.CompilationUnitTree) CeylonCompilationUnit(org.eclipse.ceylon.compiler.java.codegen.CeylonCompilationUnit)

Aggregations

CeylonCompilationUnit (org.eclipse.ceylon.compiler.java.codegen.CeylonCompilationUnit)1 CompilationUnitTree (org.eclipse.ceylon.langtools.source.tree.CompilationUnitTree)1