public void EmitUnaryExpression(UnaryExpression node, int si) { switch (node.Operator) { case UnaryOperator.BitwiseNot: this.Text.Emit("notl %eax"); break; case UnaryOperator.Negate: this.Text.Emit("negl %eax"); break; case UnaryOperator.LogicalNot: default: Helper.NotSupported(); break; } }
public override void VisitUnaryExpression (UnaryExpression node) { bool is_post_op = IsPostUnaryOperator (node.Operator); if (!is_post_op) Write (ToString (node.Operator)); Visit (node.Operand); if (is_post_op) Write (ToString (node.Operator)); }
public override ICodeNode VisitUnaryExpression(UnaryExpression node) { node = (UnaryExpression)base.VisitUnaryExpression(node); return new TypedUnaryExpression(node.Operator, node.Operand); }
public override void VisitUnaryExpression (UnaryExpression node) { Write (ToString (node.Operator)); WriteToken ("("); Visit (node.Operand); WriteToken (")"); }
public virtual void VisitUnaryExpression (UnaryExpression node) { Visit (node.Operand); }