Examples of Ambiguous


Examples of org.rascalmpl.interpreter.asserts.Ambiguous

      }
      return buildSort(parseTree, MODULE_SORT);
    }
   
    if (TreeAdapter.isAmb(tree)) {
      throw new Ambiguous(tree);
    }
   
    throw new ImplementationError("Parse of module returned invalid tree.");
  }
View Full Code Here

Examples of org.rascalmpl.interpreter.asserts.Ambiguous

      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);
  }
View Full Code Here

Examples of org.rascalmpl.interpreter.asserts.Ambiguous

    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();
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.