onlyChild

val ParserRuleContext.onlyChild: ParserRuleContext

It returns the only child (of type ParseRuleContext). If there is no children or more than one child, an exception is thrown.