Page MenuHomePhabricator

D12290.id29493.diff
No OneTemporary

D12290.id29493.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
@@ -50,22 +50,6 @@
protected function __construct() {}
- public function getDescription() {
- if (empty($this->list)) {
- return 'an empty node list';
- }
-
- $desc = array();
- $desc[] = 'a list of '.count($this->list).' nodes:';
- foreach ($this->list as $node) {
- $desc[] = ' '.$node->getDescription().';';
- }
-
- return implode("\n", $desc);
- }
-
-
-
protected function newList(array $nodes) {
return AASTNodeList::newFromTreeAndNodes(
$this->tree,
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, 10:16 PM (7 h, 6 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6943555
Default Alt Text
D12290.id29493.diff (1 KB)

Event Timeline