use of org.eclipse.ceylon.model.typechecker.model.ModuleImportList in project ceylon by eclipse.
the class DeclarationVisitor method visit.
@Override
public void visit(Tree.ImportModuleList that) {
ModuleImportList il = new ModuleImportList();
il.setContainer(scope);
il.setUnit(unit);
Scope o = enterScope(il);
super.visit(that);
exitScope(o);
}
use of org.eclipse.ceylon.model.typechecker.model.ModuleImportList in project ceylon by eclipse.
the class Decl method getToplevelDeclarationContainer.
public static Declaration getToplevelDeclarationContainer(Declaration decl) {
while (decl != null) {
Scope container = decl.getContainer();
if (container instanceof Package || container instanceof ModuleImportList) {
return decl;
}
decl = getDeclarationScope(container);
}
return decl;
}
Aggregations