IncrementalScope scope = this;
int i = 0;
int n = name.size();
while(i < n) {
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;