}
}
}
private Type processAlternatives(String typeId, String moduleName, List<Entry> alts) {
Entry first = alts.get(0);
if (first.isList() || first.isSeparatedList() || first.isNamedList()) {
if (alts.size() > 1) {
throw new RuntimeException("Multiple definitions of same list: " + alts);
}
if (first.isSeparatedList()) {
return processSeparatedList(typeId, moduleName, first);
} else if (first.isNamedList()) {
return processNamedList(typeId, moduleName, first);
} else {
return processList(typeId, moduleName, first);
}
}