Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14478775
D12290.id29493.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D12290.id29493.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D12290: Remove unused `AASTTree::renderAsText` methods
Attached
Detach File
Event Timeline
Log In to Comment