示例#1
0
        public static bool HasYield(AstNode node)
        {
            var visitor = new YieldSearchVisitor();

            node.AcceptVisitor(visitor);
            return(visitor.Found);
        }
示例#2
0
 public static bool HasYield(AstNode node)
 {
     var visitor = new YieldSearchVisitor();
     node.AcceptVisitor(visitor);
     return visitor.Found;
 }