public void Visit(Yesno node)
 {
 }
        public void Visit(Yesno node)
        {
            if (node.Value.HasValue) return;

            Exceptions.Add(new TypeCheckerError("Yes/no value could not be interpreted correctly", node));
        }
Exemple #3
0
 private WidgetBase GetWidget(QuestionUnit unit, Yesno type)
 {
     unit.InitialiseValue(GetTypeWrapper(type));
     return new YesNoWidget(unit);
 }
Exemple #4
0
 private ITerminalWrapper GetTypeWrapper(Yesno type)
 {
     return new YesnoWrapper(type);
 }
 public void Visit(Yesno node)
 {
     ReferenceTables.SetValue(node, new YesnoWrapper(node));
 }
 private YesnoWrapper CreateWrapperFor(Yesno terminal)
 {
     return new YesnoWrapper(terminal);
 }
Exemple #7
0
 public override void ExitYesno(QLParser.YesnoContext context)
 {
     Yesno literal = new Yesno(context.YESNO().GetText(), SourceLocation.CreateFor(context));
     AppendToAST(literal);
 }