Exemple #1
0
        S IAstVisitor <T, S> .VisitIsExpression(IsExpression isExpression, T data)
        {
            var handler = IsExpressionVisited;

            if (handler != null)
            {
                handler(isExpression, data);
            }
            return(VisitChildren(isExpression, data));
        }
Exemple #2
0
 public override void VisitIsExpression(IsExpression isExpression)
 {
     if (InsertParenthesesForReadability)
     {
         // few people know the precedence of 'is', so always put parentheses in nice-looking mode.
         ParenthesizeIfRequired(isExpression.Expression, Primary);
     }
     else
     {
         ParenthesizeIfRequired(isExpression.Expression, RelationalAndTypeTesting);
     }
     base.VisitIsExpression(isExpression);
 }
 void IAstVisitor.VisitIsExpression(IsExpression isExpression)
 {
     Visit(EnterIsExpression, LeaveIsExpression, isExpression);
 }
 public virtual S VisitIsExpression(IsExpression isExpression, T data)
 {
     return(VisitChildren(isExpression, data));
 }
Exemple #5
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            IsExpression o = other as IsExpression;

            return(o != null && this.Expression.DoMatch(o.Expression, match) && this.Type.DoMatch(o.Type, match));
        }
 public virtual S VisitIsExpression(IsExpression isExpression, T data)
 {
     throw new NotImplementedException();
 }