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);
}
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;
}
Aggregations