public override void ExitPowerToFactor(calcParser.PowerToFactorContext context) { base.ExitPowerToFactor(context); var factor = context.factor(); double v = Annotations.ptp.Get(factor); Annotations.ptp.Put(context, v); }
/// <summary> /// Exit a parse tree produced by the <c>powerToFactor</c> /// labeled alternative in <see cref="calcParser.power"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitPowerToFactor([NotNull] calcParser.PowerToFactorContext context) { }