MCPcopy
hub / github.com/antlr/antlr4 / getCurrentToken

Method getCurrentToken

runtime/JavaScript/src/antlr4/Parser.js:304–306  ·  view source on GitHub ↗

* Match needs to return the current input symbol, which gets put * into the label for the associated token ref; e.g., x=ID.

()

Source from the content-addressed store, hash-verified

302 * into the label for the associated token ref; e.g., x=ID.
303 */
304 getCurrentToken() {
305 return this._input.LT(1);
306 }
307
308 notifyErrorListeners(msg, offendingToken, err) {
309 offendingToken = offendingToken || null;

Callers 11

matchMethod · 0.95
matchWildcardMethod · 0.95
notifyErrorListenersMethod · 0.95
consumeMethod · 0.95
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
reportUnwantedTokenMethod · 0.45
reportMissingTokenMethod · 0.45
singleTokenDeletionMethod · 0.45
getMissingSymbolMethod · 0.45

Calls 1

LTMethod · 0.65

Tested by

no test coverage detected