Beispiel #1
0
        public PatternUst VisitIndexerExpression(DslParser.IndexerExpressionContext context)
        {
            PatternUst target = VisitExpression(context.expression(0));
            var        args   = new PatternArgs(VisitExpression(context.expression(1)));

            var result = new PatternIndexerExpression(target, args, context.GetTextSpan());

            return(result);
        }
Beispiel #2
0
        public UstNode VisitIndexerExpression(DslParser.IndexerExpressionContext context)
        {
            var target = (Expression)VisitExpression(context.expression(0));
            var args   = new ArgsNode(new[] { (Expression)VisitExpression(context.expression(1)) },
                                      context.expression(1).GetTextSpan(), null);

            var result = new IndexerExpression(target, args, context.GetTextSpan(), null);

            return(result);
        }