public AstNode VisitPostfixOperation(PostfixOperationNode n) { Visit(n.Left); Visit(n.Operator); return(n); }
private static void GeneratePostfixOperation(PostfixOperationNode node, DataContext data) { Append(data, "("); GenerateExpression(node.SourceExpression, data); switch (node.Type) { case PostfixOperationType.Increment: Append(data, "++"); break; case PostfixOperationType.Decrement: Append(data, "--"); break; default: ThrowUnableToGenerateException("PostfixOperation", node); break; } Append(data, ")"); }