Home
last modified time | relevance | path

Searched refs:old (Results 1 – 10 of 10) sorted by relevance

/PHP-Parser/lib/PhpParser/Internal/
H A DDiffElem.php17 public $old; variable in PhpParser\\Internal\\DiffElem
23 * @param mixed $old Is null for add operations
26 public function __construct(int $type, $old, $new) { argument
28 $this->old = $old;
H A DDiffer.php30 * @param T[] $old Original array
35 public function diff(array $old, array $new): array { argument
36 $old = \array_values($old);
38 list($trace, $x, $y) = $this->calculateTrace($old, $new);
39 return $this->extractDiff($trace, $x, $y, $old, $new);
48 * @param T[] $old Original array
54 return $this->coalesceReplacements($this->diff($old, $new));
58 * @param T[] $old
62 private function calculateTrace(array $old, array $new): array { argument
63 $n = \count($old);
[all …]
/PHP-Parser/test/PhpParser/Internal/
H A DDifferTest.php11 $diffStr .= $diffElem->old;
14 $diffStr .= '-' . $diffElem->old;
20 $diffStr .= '/' . $diffElem->old . $diffElem->new;
/PHP-Parser/lib/PhpParser/
H A DNodeTraverser.php262 private function ensureReplacementReasonable(Node $old, Node $new): void { argument
263 if ($old instanceof Node\Stmt && $new instanceof Node\Expr) {
265 "Trying to replace statement ({$old->getType()}) " .
271 if ($old instanceof Node\Expr && $new instanceof Node\Stmt) {
273 "Trying to replace expression ({$old->getType()}) " .
H A DPrettyPrinterAbstract.php819 $origArrItem = $diffElem->old;
/PHP-Parser/
H A DUPGRADE-2.0.md56 All legacy aliases for classes have been removed. This includes the old non-namespaced `PHPParser_`
66 * The `NodeTraverser` no longer clones nodes by default. If you want to restore the old behavior,
H A DUPGRADE-1.0.md11 The library has been moved to use namespaces with the `PhpParser` vendor prefix. However, the old n…
33 is now `PhpParser\Node\Stmt\Class_`. (But as usual, the old name is still available.)
H A DUPGRADE-5.0.md36 …PHP version of the code you're parsing. It's better to assume a too new version than a too old one.
292 The old class names have been retained as aliases for backwards compatibility. However, the `Node::…
296 …ass_`, to make it clearer that these are used by many different nodes. The old constants are depre…
451 …` return values have been moved from `NodeTraverser` to `NodeVisitor`. The old names are deprecate…
H A DCHANGELOG.md176 * Moved `NodeTraverser::REMOVE_NODE` etc. to `NodeVisitor::REMOVE_NODE`. The old constants are still
179 than an array of parts separated by namespace separators. The `getParts()` method returns the old
247 outside the `Expr`/`Stmt` hierarchy. Compatibility shims for the old names have been retained.
811 * Support for running on PHP 5 and HHVM has been removed. You can however still parse code of old
1208 * Removed legacy class name aliases. This includes the old non-namespaced class names and the old
1233 * The `NodeTraverser` no longer clones nodes by default. The old behavior can be restored by
/PHP-Parser/doc/
H A D2_Usage_of_basic_components.markdown470 a new name from the string and return it. Returning a new node replaces the old node.

Completed in 26 milliseconds