Search in sources :

Example 1 with ReferenceCounter

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

the class PhasedUnit method analyseUsage.

public synchronized void analyseUsage() {
    if (!usageAnalyzed) {
        ReferenceCounter rc = new ReferenceCounter();
        rootNode.visit(rc.setExceptionHandler(this));
        rootNode.visit(new UsageVisitor(rc).setExceptionHandler(this));
        rootNode.visit(new DeprecationVisitor().setExceptionHandler(this));
        usageAnalyzed = true;
    }
}
Also used : DeprecationVisitor(org.eclipse.ceylon.compiler.typechecker.util.DeprecationVisitor) UsageVisitor(org.eclipse.ceylon.compiler.typechecker.util.UsageVisitor) ReferenceCounter(org.eclipse.ceylon.compiler.typechecker.util.ReferenceCounter)

Aggregations

DeprecationVisitor (org.eclipse.ceylon.compiler.typechecker.util.DeprecationVisitor)1 ReferenceCounter (org.eclipse.ceylon.compiler.typechecker.util.ReferenceCounter)1 UsageVisitor (org.eclipse.ceylon.compiler.typechecker.util.UsageVisitor)1