Lines Matching refs:with

154 You can also use the `php-parse` script to obtain such a node dump by calling it either with a file
174 reserved keyword. Many node class names in this library have a trailing `_` to avoid clashing with
178 with them easier they are grouped into three categories:
203 without the `PhpParser\Node\` prefix and `\` replaced with `_`. It also does not contain a trailing
206 It is possible to associate custom metadata with a node using the `setAttribute()` method. This data
340 traverser was called with. This method can be used for resetting values before traversal or
343 The `afterTraverse()` method is similar to the `beforeTraverse()` method, with the only difference …
360 * `NodeVisitor::REPLACE_WITH_NULL`, in which case the current node will be replaced with `null`.
362 I.e. if in `array(A, B, C)` the node `B` should be replaced with `array(X, Y, Z)` the result will
373 One visitor that is already bundled with the package is `PhpParser\NodeVisitor\NameResolver`. This …
374 helps you work with namespaced code by trying to resolve most names to fully qualified ones.
403 We start off with the following base code:
450 Now lets start with the main code, the `NamespaceConverter`. One thing it needs to do
467 possible, so we don't need to do that. We only need to create a string with the name parts separated
469 create a name with backslashes either write `$node->toString()` or `(string) $node`.) Then we create
498 There is not much more to it than converting the namespaced name to string with `_` as separator.