1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2025-01-22 22:01:18 +01:00

Fix typo of DONT_TRAVERSE_CURRENT_AND_CHILDREN

This commit is contained in:
Phil Davis 2018-10-11 08:45:25 +05:45 committed by Nikita Popov
parent fb3d89e463
commit 69068722b7
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ Version 4.1.0 (2018-10-10)
and some cases which we do not expect to occur in practice (such as flexible doc strings being and some cases which we do not expect to occur in practice (such as flexible doc strings being
nested within each other through abuse of variable-variable interpolation syntax) may not be nested within each other through abuse of variable-variable interpolation syntax) may not be
recognized correctly. recognized correctly.
* Added `DONT_TRAVERSER_CURRENT_AND_CHILDREN` to `NodeTraverser` to skip both traversal of child * Added `DONT_TRAVERSE_CURRENT_AND_CHILDREN` to `NodeTraverser` to skip both traversal of child
nodes, and prevent subsequent visitors from visiting the current node. nodes, and prevent subsequent visitors from visiting the current node.
Version 4.0.4 (2018-09-18) Version 4.0.4 (2018-09-18)

View File

@ -281,7 +281,7 @@ special enterNode/leaveNode return values:
* If *any* visitor returns `DONT_TRAVERSE_CHILDREN`, the children will be skipped for *all* * If *any* visitor returns `DONT_TRAVERSE_CHILDREN`, the children will be skipped for *all*
visitors. visitors.
* If *any* visitor returns `DONT_TRAVERSER_CURRENT_AND_CHILDREN`, the children will be skipped for *all* * If *any* visitor returns `DONT_TRAVERSE_CURRENT_AND_CHILDREN`, the children will be skipped for *all*
visitors, and all *subsequent* visitors will not visit the current node. visitors, and all *subsequent* visitors will not visit the current node.
* If *any* visitor returns `STOP_TRAVERSAL`, traversal is stopped for *all* visitors. * If *any* visitor returns `STOP_TRAVERSAL`, traversal is stopped for *all* visitors.
* If a visitor returns a replacement node, subsequent visitors will be passed the replacement node, * If a visitor returns a replacement node, subsequent visitors will be passed the replacement node,