Пример #1
0
        public override Result VisitParameterList([NotNull] ExpressionParser.ParameterListContext context)
        {
            Result a = Visit(context.arguments());

            Result b = Visit(context.orexpr());

            List <object> list = new List <object>();

            list.AddRange(a.Value as object[]);

            list.Add(b.Value);

            return(new Result {
                Value = list.ToArray()
            });
        }
Пример #2
0
        public override Result VisitParameterList([NotNull] ExpressionParser.ParameterListContext context)
        {
            Result a = Visit(context.arguments());

            List <string> list = new List <string>();

            list.AddRange(a.Value as string[]);

            string tmp = context.orexpr().GetText();

            tmp = tmp.TrimStart(new char[] { '\"', '\'' });
            tmp = tmp.TrimEnd(new char[] { '\"', '\'' });

            list.Add(tmp);

            Visit(context.orexpr());

            return(new Result {
                Value = list.ToArray()
            });
        }
Пример #3
0
 /// <summary>
 /// Exit a parse tree produced by the <c>ParameterList</c>
 /// labeled alternative in <see cref="ExpressionParser.arguments"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitParameterList([NotNull] ExpressionParser.ParameterListContext context)
 {
 }
Пример #4
0
 /// <summary>
 /// Visit a parse tree produced by the <c>ParameterList</c>
 /// labeled alternative in <see cref="ExpressionParser.arguments"/>.
 /// <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 VisitParameterList([NotNull] ExpressionParser.ParameterListContext context)
 {
     return(VisitChildren(context));
 }