createErrorNode method

ErrorNode createErrorNode(
  1. ParserRuleContext parent,
  2. Token t
)
inherited

How to create an error node, given a token, associated with a parent. Typically, the error node to create is not a function of the parent.

@since 4.7

Implementation

ErrorNode createErrorNode(ParserRuleContext parent, Token t) {
  return ErrorNodeImpl(t);
}