public ErrorNode addErrorNode(ErrorNode errorNode) {
		errorNode.setParent(this);
		return addAnyChild(errorNode);
	}
Add an error node child and force its parent to be this node.

@since 4.7
runtime/Java/src/org/antlr/v4/runtime/ParserRuleContext.java