public override object VisitRos_action_input(RosMessageParser.Ros_action_inputContext context) { var goal = (MessageDescriptor)Visit(context.GetChild(0)); var result = (MessageDescriptor)Visit(context.GetChild(2)); var feedback = (MessageDescriptor)Visit(context.GetChild(4)); var actionDescriptor = new ActionDescriptor(goal, result, feedback); _listener.OnVisitRosAction(actionDescriptor); return(actionDescriptor); }
/// <summary> /// Visit a parse tree produced by <see cref="RosMessageParser.ros_action_input"/>. /// <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 VisitRos_action_input([NotNull] RosMessageParser.Ros_action_inputContext context) { return(VisitChildren(context)); }
/// <summary> /// Exit a parse tree produced by <see cref="RosMessageParser.ros_action_input"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitRos_action_input([NotNull] RosMessageParser.Ros_action_inputContext context) { }