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