コード例 #1
0
        public static (IEnumerable <string> errors, IEnumerable <string> warnings) CheckTypes(QuestionForm questionForm)
        {
            var checker = new QLTypeChecker();

            questionForm.Accept(checker);
            return(checker._messages.ToTuple());
        }
コード例 #2
0
        CheckQuestionReferences(StyleSheet styleSheet, QuestionForm questionForm)
        {
            var checker = new QLSReferenceChecker();

            questionForm.Accept(checker);
            styleSheet.Accept(checker);
            return(checker._messages.ToTuple());
        }
コード例 #3
0
 public void SetAnswer(string questionId, IValue answer)
 {
     _answers[questionId] = answer;
     _questionForm.Accept(this);
 }
コード例 #4
0
 public QLExecutor(QuestionForm questionForm)
 {
     _questionForm = questionForm;
     _questionForm.Accept(this);
 }