Exemplo n.º 1
0
 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));
		}
Exemplo n.º 3
0
 public override ICodeNode VisitUnaryExpression(UnaryExpression node)
 {
     node = (UnaryExpression)base.VisitUnaryExpression(node);
     return new TypedUnaryExpression(node.Operator, node.Operand);
 }
Exemplo n.º 4
0
		public override void VisitUnaryExpression (UnaryExpression node)
		{
			Write (ToString (node.Operator));
			WriteToken ("(");
			Visit (node.Operand);
			WriteToken (")");
		}
Exemplo n.º 5
0
		public virtual void VisitUnaryExpression (UnaryExpression node)
		{
			Visit (node.Operand);
		}