コード例 #1
0
 public void Visit(Text node)
 {
 }
コード例 #2
0
        public void Visit(Text node)
        {
            if (node.Value != null) return;

            Exceptions.Add(new TypeCheckerError("String value could not be parsed and resulted in null", node));
        }
コード例 #3
0
ファイル: WidgetFactory.cs プロジェクト: javachengwc/many-ql
 private WidgetBase GetWidget(QuestionUnit unit, Text type)
 {
     unit.InitialiseValue(GetTypeWrapper(type));
     return new TextWidget(unit);
 }
コード例 #4
0
ファイル: WidgetFactory.cs プロジェクト: javachengwc/many-ql
 private ITerminalWrapper GetTypeWrapper(Text type)
 {
     return new TextWrapper(type);
 }
コード例 #5
0
 public void Visit(Text node)
 {
     ReferenceTables.SetValue(node, new TextWrapper(node));
 }
コード例 #6
0
 private TextWrapper CreateWrapperFor(Text terminal)
 {
     return new TextWrapper(terminal);
 }
コード例 #7
0
ファイル: QLListener.cs プロジェクト: javachengwc/many-ql
 public override void ExitText(QLParser.TextContext context)
 {
     Text literal = new Text(context.TEXT().GetText(), SourceLocation.CreateFor(context));
     AppendToAST(literal);
 }