Example #1
0
        public FunctionCallNode(LeafParser.Function_callContext ctx)
        {
            var values = ctx.value();

            Line   = ctx.Start.Line;
            LValue = Create(values[0]);

            var parameters = new ValueNode[values.Length - 1];

            for (var i = 0; i < parameters.Length; i++)
            {
                parameters[i] = Create(values[i + 1]);
            }

            Parameters = parameters;
        }
Example #2
0
 public static Value Compile(this LeafParser.Function_callContext c, in LocalCompilationContext ctx)
Example #3
0
 /// <summary>
 /// Visit a parse tree produced by <see cref="LeafParser.function_call"/>.
 /// <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 VisitFunction_call([NotNull] LeafParser.Function_callContext context)
 {
     return(VisitChildren(context));
 }