Lines Matching refs:traverser
358 $traverser = new PhpParser\NodeTraverser();
359 $traverser->addVisitor(new NameResolver());
361 $this->assertEquals($stmts, $traverser->traverse($stmts));
377 $traverser = new PhpParser\NodeTraverser();
378 $traverser->addVisitor(new NameResolver());
380 $stmts = $traverser->traverse([new Stmt\Namespace_(new Name('NS'), $nsStmts)]);
389 $stmts = $traverser->traverse([new Stmt\Namespace_(null, $nsStmts)]);
411 $traverser = new PhpParser\NodeTraverser();
412 $traverser->addVisitor(new NameResolver());
413 $stmts = $traverser->traverse($stmts);
429 $traverser = new PhpParser\NodeTraverser();
430 $traverser->addVisitor(new NameResolver());
431 $traverser->traverse([$stmt]);
487 $traverser = new PhpParser\NodeTraverser();
488 $traverser->addVisitor(new NameResolver());
490 $stmts = $traverser->traverse($stmts);
516 $traverser = new PhpParser\NodeTraverser();
517 $traverser->addVisitor(new NameResolver());
519 $stmts = $traverser->traverse($stmts);
529 $traverser = new PhpParser\NodeTraverser();
530 $traverser->addVisitor(new NameResolver(null, ['preserveOriginalNames' => true]));
541 $stmts = $traverser->traverse($origStmts);
548 $traverser = new PhpParser\NodeTraverser();
549 $traverser->addVisitor(new NameResolver(null, ['replaceNodes' => false]));
560 $traverser->traverse($origStmts);
571 $traverser = new PhpParser\NodeTraverser();
572 $traverser->addVisitor(new NameResolver());
575 return $traverser->traverse($stmts);