public override void EnterMetric_name(VmstatsParser.Metric_nameContext context) { Console.WriteLine("EnterMetric_name - {0}", context.Payload.GetChild(0)); // Save the metric name currentMetricName = context.Payload.GetChild(0).ToString(); }
public override void ExitMetric_name(VmstatsParser.Metric_nameContext context) { Console.WriteLine("ExitMetric_name"); }
/// <summary> /// Exit a parse tree produced by <see cref="VmstatsParser.metric_name"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitMetric_name([NotNull] VmstatsParser.Metric_nameContext context) { }
/// <summary> /// Visit a parse tree produced by <see cref="VmstatsParser.metric_name"/>. /// <para> /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/> /// on <paramref name="context"/>. /// </para> /// </summary> /// <param name="context">The parse tree.</param> /// <return>The visitor result.</return> public virtual Result VisitMetric_name([NotNull] VmstatsParser.Metric_nameContext context) { return(VisitChildren(context)); }