Page MenuHomePhabricator

D12287.diff
No OneTemporary

D12287.diff

diff --git a/src/parser/aast/api/AASTNodeList.php b/src/parser/aast/api/AASTNodeList.php
--- a/src/parser/aast/api/AASTNodeList.php
+++ b/src/parser/aast/api/AASTNodeList.php
@@ -28,11 +28,7 @@
}
public function selectDescendantsOfType($type_name) {
- $results = array();
- foreach ($this->list as $id => $node) {
- $results += $node->selectDescendantsOfType($type_name)->getRawNodes();
- }
- return $this->newList($results);
+ return $this->selectDescendantsOfTypes(array($type_name));
}
public function selectDescendantsOfTypes(array $type_names) {

File Metadata

Mime Type
text/plain
Expires
Sat, May 18, 7:07 AM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6278107
Default Alt Text
D12287.diff (588 B)

Event Timeline