• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1org.antlr.runtime.MismatchedTreeNodeException = function(expecting, input) {
2    if (expecting && input) {
3        org.antlr.runtime.MismatchedTreeNodeException.superclass.constructor.call(
4                this, input);
5        this.expecting = expecting;
6    }
7};
8
9org.antlr.lang.extend(
10    org.antlr.runtime.MismatchedTreeNodeException,
11    org.antlr.runtime.RecognitionException, {
12    toString: function() {
13        return "MismatchedTreeNodeException(" +
14                this.getUnexpectedType() + "!=" + this.expecting + ")";
15    },
16    name: "org.antlr.runtime.MismatchedTreeNodeException"
17});
18