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

Method getCurrentToken

runtime/Python3/src/antlr4/Parser.py:312–313  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

310 # into the label for the associated token ref; e.g., x=ID.
311 #
312 def getCurrentToken(self):
313 return self._input.LT(1)
314
315 def notifyErrorListeners(self, msg:str, offendingToken:Token = None, e:RecognitionException = None):
316 if offendingToken is None:

Callers 11

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

Calls 1

LTMethod · 0.65

Tested by

no test coverage detected