protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            AnonymousMethodExpression o = other as AnonymousMethodExpression;

            return(o != null && this.IsAsync == o.IsAsync && this.HasParameterList == o.HasParameterList &&
                   this.Parameters.DoMatch(o.Parameters, match) && this.Body.DoMatch(o.Body, match));
        }
        S IAstVisitor <T, S> .VisitAnonymousMethodExpression(AnonymousMethodExpression anonymousMethodExpression, T data)
        {
            var handler = AnonymousMethodExpressionVisited;

            if (handler != null)
            {
                handler(anonymousMethodExpression, data);
            }
            return(VisitChildren(anonymousMethodExpression, data));
        }
Esempio n. 3
0
 public virtual S VisitAnonymousMethodExpression(AnonymousMethodExpression anonymousMethodExpression, T data)
 {
     return(VisitChildren(anonymousMethodExpression, data));
 }