* Report recoverable errors (e.g., inserted brackets).
*
* @param outerBeginOffset The begin offset of the enclosing construct.
*/
private static void gatherAmbiguities(IStrategoTerm term, final List<Error> errors) {
new TermVisitor() {
IStrategoTerm ambStart;
public void preVisit(IStrategoTerm term) {
if (ambStart == null && Environment.getTermFactory().makeConstructor("amb", 1) == tryGetConstructor(term)) {
reportAmbiguity(term, errors);