Page MenuHomePhabricator

D10554.diff
No OneTemporary

D10554.diff

diff --git a/src/parser/aast/api/AASTNode.php b/src/parser/aast/api/AASTNode.php
--- a/src/parser/aast/api/AASTNode.php
+++ b/src/parser/aast/api/AASTNode.php
@@ -58,6 +58,18 @@
return $this->children;
}
+ public function getChildrenOfType($type) {
+ $nodes = array();
+
+ foreach ($this->children as $child) {
+ if ($child->getTypeName() == $type) {
+ $nodes[] = $child;
+ }
+ }
+
+ return $nodes;
+ }
+
public function getChildOfType($index, $type) {
$child = $this->getChildByIndex($index);
if ($child->getTypeName() != $type) {

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 18, 11:25 AM (5 d, 1 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7706098
Default Alt Text
D10554.diff (587 B)

Event Timeline