Ejemplo n.º 1
0
        public override INode VisitComputedQuestion([NotNull] QLParser.ComputedQuestionContext context)
        {
            var question   = context.question().Accept(this);
            var expression = context.expression().Accept(this);

            return(new ComputedQuestion((dynamic)question, (dynamic)expression));
        }
Ejemplo n.º 2
0
        public override AstNode VisitComputedQuestion([NotNull] QLParser.ComputedQuestionContext context)
        {
            var question = new ComputedQuestion
            {
                Id         = context.ID().GetText(),
                Text       = StripQuotes(context.QUOTED_STRING().GetText()),
                Type       = context.type().Accept(this) as BaseType,
                Expression = context.expr().Accept(this) as Expression
            };

            return(question);
        }