Inheritance: NodeExpr
Example #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?");
 }
Example #2
0
 public void Visit(NodeInfix infix)
 {
     infix.left.Accept(this);
     infix.right.Accept(this);
 }
Example #3
0
 public void Visit(NodeInfix infix)
 {
     throw new NotImplementedException();
 }
Example #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(" ')'");
 }