Example #1
0
        public override ExpressionNode VisitTerm2([NotNull] mdxParser.Term2Context context)
        {
            if (context.children.Count > 1)
            {
                var            List          = context.children;
                DimensionNodes DimensionList = new DimensionNodes();
                DimensionList.List = new List <ExpressionNode>();

                for (int i = 0; i < List.Count; i = i + 2)
                {
                    DimensionList.List.Add(Visit(List[i]));
                }
                return(DimensionList);
            }
            else
            {
                var k = base.VisitTerm2(context);
                return(k);
            }
        }
 /// <summary>
 /// Exit a parse tree produced by <see cref="mdxParser.term2"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitTerm2([NotNull] mdxParser.Term2Context context)
 {
 }
Example #3
0
 /// <summary>
 /// Visit a parse tree produced by <see cref="mdxParser.term2"/>.
 /// <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 VisitTerm2([NotNull] mdxParser.Term2Context context)
 {
     return(VisitChildren(context));
 }