Search in sources :

Example 1 with ModuleVisitor

use of org.eclipse.ceylon.compiler.typechecker.analyzer.ModuleVisitor in project ceylon by eclipse.

the class CeylonVersionTool method fixModuleImportNames.

private void fixModuleImportNames(Tree.CompilationUnit cu) {
    ModuleVisitor hugeHackMan = new ModuleVisitor(null, null, null, false);
    hugeHackMan.visit(cu);
}
Also used : ModuleVisitor(org.eclipse.ceylon.compiler.typechecker.analyzer.ModuleVisitor)

Example 2 with ModuleVisitor

use of org.eclipse.ceylon.compiler.typechecker.analyzer.ModuleVisitor in project ceylon by eclipse.

the class PhasedUnit method visitSrcModulePhase.

public Module visitSrcModulePhase() {
    boolean moduleFile = ModuleManager.MODULE_FILE.equals(fileName);
    boolean packageFile = ModuleManager.PACKAGE_FILE.equals(fileName);
    if (moduleFile || packageFile) {
        if (!moduleVisited) {
            moduleVisited = true;
            processLiterals();
            moduleVisitor = new ModuleVisitor(moduleManagerRef.get(), moduleSourceMapperRef.get(), pkg, moduleFile);
            moduleVisitor.setExceptionHandler(this);
            moduleVisitor.setCompleteOnlyAST(!isAllowedToChangeModel(null));
            rootNode.visit(moduleVisitor);
            return moduleVisitor.getMainModule();
        }
    }
    return null;
}
Also used : ModuleVisitor(org.eclipse.ceylon.compiler.typechecker.analyzer.ModuleVisitor)

Aggregations

ModuleVisitor (org.eclipse.ceylon.compiler.typechecker.analyzer.ModuleVisitor)2