Beispiel #1
0
        public override QuestionNode VisitQuestion(QuestionContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("Context can't be null");
            }

            var id = context.ID().GetText();
            var rawQuestionText = context.TEXT().GetText();
            var question        = Util.RemoveQuotes(rawQuestionText);
            var qtype           = Util.GetQValueTypeFromString(context.QTYPE().GetText());

            return(new QuestionNode(Location.FromContext(context), id, question, qtype));
        }