public override void ExitRule(IParseTreeListener listener) { IFormulaListener typedListener = listener as IFormulaListener; if (typedListener != null) { typedListener.ExitVariableReferenceEnd(this); } }