Home | History | Annotate | Download | only in tree

Lines Matching refs:this

12     this.input = input;
13 this.start = start;
14 this.stop = stop;
15 this.trappedException = e;
29 if ( this.start instanceof org.antlr.runtime.Token ) {
30 var i = this.start.getTokenIndex();
31 var j = this.stop.getTokenIndex();
32 if ( this.stop.getType() === org.antlr.runtime.Token.EOF ) {
33 j = this.input.size();
35 badText = this.input.toString(i, j);
37 else if ( this.start instanceof org.antlr.runtime.tree.Tree ) {
38 badText = this.input.toString(this.start, this.stop);
41 // people should subclass if they alter the tree type so this
49 if ( this.trappedException instanceof org.antlr.runtime.MissingTokenException ) {
51 this.trappedException.getMissingType()+
54 else if ( this.trappedException instanceof org.antlr.runtime.UnwantedTokenException ) {
56 this.trappedException.getUnexpectedToken()+
57 ", resync="+this.getText()+">";
59 else if ( this.trappedException instanceof org.antlr.runtime.MismatchedTokenException ) {
60 return "<mismatched token: "+this.trappedException.token+", resync="+this.getText()+">";
62 else if ( this.trappedException instanceof org.antlr.runtime.NoViableAltException ) {
63 return "<unexpected: "+this.trappedException.token+
64 ", resync="+this.getText()+">";
66 return "<error: "+this.getText()+">";