public override Node VisitQuestion([NotNull] QuestionContext context) { var questionNode = new QuestionNode(context.Start, context.LABEL().ToString()); if (context.style() != null) { questionNode.AddChild(Visit(context.style())); } return(questionNode); }
public override Node VisitQuestion(QuestionContext context) { var expressionNode = Visit(context.expression()); var question = new QuestionNode(context.Start, context.STRING().GetText().Replace("\"", string.Empty), context.LABEL().GetText(), expressionNode != null, QLTypeConverter.FromStringTypeToQLType(context.type().GetText())); question.AddChild(expressionNode); return(question); }