createTerminalNode method

TerminalNode createTerminalNode(
  1. ParserRuleContext parent,
  2. Token t
)
inherited

How to create a token leaf node associated with a parent. Typically, the terminal node to create is not a function of the parent.

@since 4.7

Implementation

TerminalNode createTerminalNode(ParserRuleContext parent, Token t) {
  return TerminalNodeImpl(t);
}