Exemple #1
0
        public UstNode VisitInvocationExpression(DslParser.InvocationExpressionContext context)
        {
            ArgsNode args   = context.args() == null ? new ArgsNode() : (ArgsNode)VisitArgs(context.args());
            var      expr   = (Expression)VisitExpression(context.expression());
            var      result = new InvocationExpression(expr, args, context.GetTextSpan(), null);

            return(result);
        }
Exemple #2
0
        public PatternUst VisitInvocationExpression(DslParser.InvocationExpressionContext context)
        {
            PatternArgs args = context.args() == null
                ? new PatternArgs()
                : (PatternArgs)VisitArgs(context.args());
            PatternUst expr   = VisitExpression(context.expression());
            var        result = new PatternInvocationExpression(expr, args, context.GetTextSpan());

            return(result);
        }