public override object VisitFixed_array_type(RosMessageParser.Fixed_array_typeContext context) { var type = (RosTypeInfo)Visit(context.GetChild(0)); var size = int.Parse(context.GetChild(2).GetText()); var arrayType = RosTypeInfo.CreateFixedSizeArray(type, size); _listener.OnVisitArrayType(arrayType); return(arrayType); }
/// <summary> /// Visit a parse tree produced by <see cref="RosMessageParser.fixed_array_type"/>. /// <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 VisitFixed_array_type([NotNull] RosMessageParser.Fixed_array_typeContext context) { return(VisitChildren(context)); }
/// <summary> /// Exit a parse tree produced by <see cref="RosMessageParser.fixed_array_type"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitFixed_array_type([NotNull] RosMessageParser.Fixed_array_typeContext context) { }