Mercurial > hg > isophonics-drupal-site
diff vendor/nikic/php-parser/doc/2_Usage_of_basic_components.markdown @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | c2387f117808 |
children |
line wrap: on
line diff
--- a/vendor/nikic/php-parser/doc/2_Usage_of_basic_components.markdown Tue Jul 10 15:07:59 2018 +0100 +++ b/vendor/nikic/php-parser/doc/2_Usage_of_basic_components.markdown Thu Feb 28 13:21:36 2019 +0000 @@ -339,7 +339,8 @@ case the current node is not changed. The `enterNode()` method can additionally return the value `NodeTraverser::DONT_TRAVERSE_CHILDREN`, -which instructs the traverser to skip all children of the current node. +which instructs the traverser to skip all children of the current node. To furthermore prevent subsequent +visitors from visiting the current node, `NodeTraverser::DONT_TRAVERSE_CURRENT_AND_CHILDREN` can be used instead. The `leaveNode()` method can additionally return the value `NodeTraverser::REMOVE_NODE`, in which case the current node will be removed from the parent array. Furthermore it is possible to return