emit method
Token
emit()
inherited
The standard method called to automatically emit a token at the outermost lexical rule. The token object should point into the char buffer start..stop. If there is a text override in 'text', use that to set the token's text. Override this method to emit custom Token objects or provide a new factory.
Implementation
Token emit() {
final t = tokenFactory.create(
type,
_text,
_tokenFactorySourcePair,
channel,
tokenStartCharIndex,
charIndex - 1,
tokenStartLine,
tokenStartCharPositionInLine);
emitToken(t);
return t;
}