String s = name.get(i++);
Type type = scope.lookupDeclaration(s);
if (type == null) {
if (i < n) {
SyntheticNamespace ns = new SyntheticNamespace(scope, s);
scope.addDeclaration(ns);
scope = ns;
} else {
scope.addDeclaration(lib);
lib.setParent(scope);
return;