949596979899100101102103
} return buildSort(parseTree, MODULE_SORT); } if (TreeAdapter.isAmb(tree)) { throw new Ambiguous(tree); } throw new ImplementationError("Parse of module returned invalid tree."); }
130131132133134135136137138139
if (sortName(tree).equals(sort)) { return (T) buildValue(tree); } } else if (TreeAdapter.isAmb(parseTree)) { throw new Ambiguous(parseTree); } throw new ImplementationError("This is not a " + sort + ": " + parseTree); }
144145146147148149150151152153154
if (TreeAdapter.isList(tree)) { throw new ImplementationError("buildValue should not be called on a list"); } if (TreeAdapter.isAmb(tree)) { throw new Ambiguous(tree); } if (!TreeAdapter.isAppl(tree)) { throw new UnsupportedOperationException(); }