processDescendantsAndErrors

fun ParserRuleContext.processDescendantsAndErrors(operationOnParserRuleContext: (ParserRuleContext) -> Unit, operationOnError: (ErrorNode) -> Unit, includingMe: Boolean = true)

Navigate the parse tree performing the specified operations on the nodes, either real nodes or nodes representing errors.