示例#1
0
            // UnaryOp

            public override void Enter(UnaryOp node)
            {
                var op = String.Empty;

                switch (node.Code)
                {
                case UnaryOpCode.Neg:
                    op = "-";
                    break;

                case UnaryOpCode.Not:
                    op = "~";
                    break;
                }
                this.builder.AppendFormat("({0}(", op);
            }
示例#2
0
 public override void Exit(UnaryOp node)
 {
     this.builder.Append("))");
 }
示例#3
0
 public virtual void Exit(UnaryOp node)
 {
 }
示例#4
0
 public virtual void Enter(UnaryOp node)
 {
 }