Page MenuHomePhabricator

D12290.diff
No OneTemporary

D12290.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
@@ -9,20 +9,6 @@
protected function __construct() {}
- public function getDescription() {
- if (empty($this->list)) {
- return pht('an empty node list');
- }
-
- $desc = array();
- $desc[] = pht('a list of %s nodes:', new PhutilNumber(count($this->list)));
- foreach ($this->list as $node) {
- $desc[] = ' '.$node->getDescription().';';
- }
-
- return implode("\n", $desc);
- }
-
protected function newList(array $nodes) {
return AASTNodeList::newFromTreeAndNodes($this->tree, $nodes);
}
diff --git a/src/parser/aast/api/AASTTree.php b/src/parser/aast/api/AASTTree.php
--- a/src/parser/aast/api/AASTTree.php
+++ b/src/parser/aast/api/AASTTree.php
@@ -151,23 +151,6 @@
return $this->stream;
}
- public function renderAsText() {
- return $this->executeRenderAsText(array($this->getRootNode()), 0);
- }
-
- protected function executeRenderAsText($list, $depth) {
- $return = '';
- foreach ($list as $node) {
- if ($depth) {
- $return .= str_repeat(' ', $depth);
- }
- $return .= $node->getDescription()."\n";
- $return .= $this->executeRenderAsText($node->getChildren(), $depth + 1);
- }
- return $return;
- }
-
-
public function getOffsetToLineNumberMap() {
if ($this->lineMap === null) {
$src = $this->rawSource;

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 29, 7:51 AM (9 h, 9 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6941849
Default Alt Text
D12290.diff (1 KB)

Event Timeline