Search in sources :

Example 1 with PrintVisitor

use of org.eclipse.ceylon.compiler.typechecker.util.PrintVisitor in project ceylon by eclipse.

the class Node method toString.

@Override
public String toString() {
    StringWriter w = new StringWriter();
    PrintVisitor pv = new PrintVisitor(w);
    pv.visitAny(this);
    return w.toString();
// return getClass().getSimpleName() + "(" + text + ")";
}
Also used : StringWriter(java.io.StringWriter) PrintVisitor(org.eclipse.ceylon.compiler.typechecker.util.PrintVisitor)

Example 2 with PrintVisitor

use of org.eclipse.ceylon.compiler.typechecker.util.PrintVisitor in project ceylon by eclipse.

the class PhasedUnit method display.

public void display() {
    System.out.println("Displaying " + fileName);
    rootNode.visit(new PrintVisitor());
}
Also used : PrintVisitor(org.eclipse.ceylon.compiler.typechecker.util.PrintVisitor)

Aggregations

PrintVisitor (org.eclipse.ceylon.compiler.typechecker.util.PrintVisitor)2 StringWriter (java.io.StringWriter)1