Lines Matching refs:token
8 * exceptions are built with the expected token type.
20 * state can change before the exception is reported so current token index
22 * perhaps print an entire line of input not just a single token, for example.
36 this.token = input.LT(1);
37 this.line = this.token.getLine();
38 this.charPositionInLine = this.token.getCharPositionInLine();
65 /** What is index of token/char were we looking at when the error occurred?
72 * For parsers. Even when it's a tree parser, token might be set.
75 token: null,
107 * for most recent token with line/col info, but notify getErrorHeader()
128 this.token = payload;
146 else { // node created from real token
155 this.token = this.node.token;
161 this.token = new org.antlr.runtime.CommonToken(type, text);
165 /** Return the token type or char of the unexpected input element
170 return this.token.getType();