示例#1
0
 public override void VisitAfter(BitwiseNotExpr expr)
 {
     if (IsPlaceHolderExpr(expr.Operand))
     {
         expr.Operand = PlaceInBitwiseNot((PlaceHolderExpr)expr.Operand);
     }
 }
示例#2
0
        public override void ExitBitwiseNotExpr(MiniSqlParserParser.BitwiseNotExprContext context)
        {
            var comments = this.GetComments(context);
            var operand  = (Expr)_stack.Pop();
            var node     = new BitwiseNotExpr(operand, comments);

            _stack.Push(node);
        }
        public override void VisitAfter(BitwiseNotExpr expr)
        {
            var operand = (Expr)_stack.Pop();

            if (object.ReferenceEquals(expr.Operand, operand))
            {
                _stack.Push(expr);
                return;
            }

            var node = new BitwiseNotExpr(operand, expr.Comments.Clone());

            _stack.Push(node);
        }
示例#4
0
 virtual public void VisitAfter(BitwiseNotExpr expr)
 {
 }
示例#5
0
 virtual public void VisitBefore(BitwiseNotExpr expr)
 {
 }
 public void VisitAfter(BitwiseNotExpr expr)
 {
     _visitor.VisitAfter(expr);
 }
 public void VisitBefore(BitwiseNotExpr expr)
 {
     _visitor.VisitBefore(expr);
 }