Example #1
0
 public override void VisitAfter(BracketedExpr expr)
 {
     if (IsPlaceHolderExpr(expr.Operand))
     {
         expr.Operand = Place((PlaceHolderExpr)expr.Operand);
     }
 }
Example #2
0
        private Expr PlaceInBitwiseNot(PlaceHolderExpr ph)
        {
            var expr = this.Place(ph);

            if (expr.GetType() == typeof(BinaryOpExpr))
            {
                expr = new BracketedExpr(expr);
            }
            return(expr);
        }
        public override void VisitAfter(BracketedExpr expr)
        {
            var operand = (Expr)_stack.Pop();

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

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

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