Inheritance: NodeExpr
Esempio n. 1
0
 public void Visit(NodeInfix infix)
 {
     log.Error(infix.Span, "Expressions are not valid in this placement. Perhaps you meant to put it in a function?");
 }
Esempio n. 2
0
 public void Visit(NodeInfix infix)
 {
     infix.left.Accept(this);
     infix.right.Accept(this);
 }
Esempio n. 3
0
 public void Visit(NodeInfix infix)
 {
     throw new NotImplementedException();
 }
Esempio n. 4
0
 public void Visit(NodeInfix infix)
 {
     var image = infix.op.Image;
     Write("'(' ");
     infix.left.Accept(this);
     Write(" ')'");
     // TODO(kai): maybe use something different
     if (Lex.Util.IsIdentifierStart(image[0]))
         Write(" `" + image + " ");
     else Write(" " + image + " ");
     Write("'(' ");
     infix.right.Accept(this);
     Write(" ')'");
 }