public override Expression VisitFuncInvokeExp([NotNull] ExpressionAntlrParser.FuncInvokeExpContext context)
            {
                var parameters = ProcessArgsList(context.argsList()).ToList();

                // Remove the check to check primaryExpression is just an IDENTIFIER to support "." in template name
                var functionName = context.primaryExpression().GetText();

                return(MakeExpression(functionName, parameters.ToArray()));
            }
Example #2
0
 /// <summary>
 /// Exit a parse tree produced by the <c>funcInvokeExp</c>
 /// labeled alternative in <see cref="ExpressionAntlrParser.primaryExpression"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitFuncInvokeExp([NotNull] ExpressionAntlrParser.FuncInvokeExpContext context)
 {
 }
 /// <summary>
 /// Visit a parse tree produced by the <c>funcInvokeExp</c>
 /// labeled alternative in <see cref="ExpressionAntlrParser.primaryExpression"/>.
 /// <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 VisitFuncInvokeExp([NotNull] ExpressionAntlrParser.FuncInvokeExpContext context)
 {
     return(VisitChildren(context));
 }