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; }
public static Value Compile(this LeafParser.Function_callContext c, in LocalCompilationContext ctx)
/// <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)); }