protected function newList(array $nodes) { return XHPASTNodeList::newFromTreeAndNodes($this->tree, $nodes); }
public function selectDescendantsOfType($type_name) { $type = $this->getTypeIDFromTypeName($type_name); return XHPASTNodeList::newFromTreeAndNodes($this->tree, $this->executeSelectDescendantsOfType($this, $type)); }