Search in sources :

Example 1 with ModuleValidator

use of com.redhat.ceylon.compiler.typechecker.analyzer.ModuleValidator in project ceylon-compiler by ceylon.

the class CeyloncCompilerDelegate method resolveModuleDependencies.

@Override
public void resolveModuleDependencies(PhasedUnits phasedUnits) {
    final StatusPrinter sp = getStatusPrinter();
    com.redhat.ceylon.compiler.typechecker.context.Context ceylonContext = LanguageCompiler.getCeylonContextInstance(context);
    final ModuleValidator validator = new ModuleValidator(ceylonContext, phasedUnits);
    if (sp != null) {
        validator.setListener(new StatusPrinterProgressListener(validator, sp));
        sp.clearLine();
        sp.log("Starting resolving");
    }
    validator.verifyModuleDependencyTree();
    if (sp != null) {
        sp.clearLine();
        sp.log("Done resolving");
    }
}
Also used : StatusPrinter(com.redhat.ceylon.common.StatusPrinter) ModuleValidator(com.redhat.ceylon.compiler.typechecker.analyzer.ModuleValidator)

Aggregations

StatusPrinter (com.redhat.ceylon.common.StatusPrinter)1 ModuleValidator (com.redhat.ceylon.compiler.typechecker.analyzer.ModuleValidator)1