S IAstVisitor <T, S> .VisitForeachStatement(ForeachStatement foreachStatement, T data)
        {
            var handler = ForeachStatementVisited;

            if (handler != null)
            {
                handler(foreachStatement, data);
            }
            return(VisitChildren(foreachStatement, data));
        }
예제 #2
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            ForeachStatement o = other as ForeachStatement;

            return(o != null && this.ForEachStatement.DoMatch(o.ForEachStatement, match));
        }