Ejemplo n.º 1
0
 /// <summary>
 /// Searches from the specified node.
 /// </summary>
 /// <param name="node">The node.</param>
 /// <param name="filter">The filter function to apply to each node.</param>
 /// <param name="buildScopeDeclaration">if set to <c>true</c> [build scope declaration].</param>
 /// <param name="useNodeStack">if set to <c>true</c> [use node stack].</param>
 public static void Run(Node node, Func<Node, Node> filter, bool buildScopeDeclaration = false, bool useNodeStack = false)
 {
     var visitor = new SearchVisitor(filter, buildScopeDeclaration, useNodeStack);
     visitor.VisitDynamic(node);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Searches from the specified node.
        /// </summary>
        /// <param name="node">The node.</param>
        /// <param name="filter">The filter function to apply to each node.</param>
        /// <param name="buildScopeDeclaration">if set to <c>true</c> [build scope declaration].</param>
        /// <param name="useNodeStack">if set to <c>true</c> [use node stack].</param>
        public static void Run(Node node, Func <Node, Node> filter, bool buildScopeDeclaration = false, bool useNodeStack = false)
        {
            var visitor = new SearchVisitor(filter, buildScopeDeclaration, useNodeStack);

            visitor.VisitDynamic(node);
        }