Lines Matching refs:use
4 This document explains how to use the parser, the pretty printer and the node traverser.
31 use PhpParser\ParserFactory;
32 use PhpParser\PhpVersion;
44 Which version you should target depends on your use case. In many cases you will want to use the
49 The `createXYZ()` methods optionally accept an array of lexer options. Some use cases that require
58 use PhpParser\Error;
59 use PhpParser\ParserFactory;
88 use PhpParser\NodeDumper;
154 You can also use the `php-parse` script to obtain such a node dump by calling it either with a file
224 use PhpParser\Error;
225 use PhpParser\ParserFactory;
226 use PhpParser\PrettyPrinter;
283 use PhpParser\NodeTraverser;
284 use PhpParser\ParserFactory;
285 use PhpParser\PrettyPrinter;
315 use PhpParser\Node;
316 use PhpParser\NodeVisitorAbstract;
378 use A as B;
406 use PhpParser\ParserFactory;
407 use PhpParser\PrettyPrinter;
408 use PhpParser\NodeTraverser;
409 use PhpParser\NodeVisitor\NameResolver;
454 use PhpParser\Node;
477 use PhpParser\Node;
478 use PhpParser\Node\Stmt;
500 The last thing we need to do is remove the `namespace` and `use` statements:
503 use PhpParser\Node;
504 use PhpParser\Node\Stmt;
505 use PhpParser\NodeVisitor;
524 // remove use nodes altogether