Page MenuHomePhabricator

D14697.id.diff
No OneTemporary

D14697.id.diff

diff --git a/src/applications/phpast/controller/PhabricatorXHPASTViewStreamController.php b/src/applications/phpast/controller/PhabricatorXHPASTViewStreamController.php
--- a/src/applications/phpast/controller/PhabricatorXHPASTViewStreamController.php
+++ b/src/applications/phpast/controller/PhabricatorXHPASTViewStreamController.php
@@ -22,7 +22,7 @@
foreach ($tree->getRawTokenStream() as $id => $token) {
$seq = $id;
$name = $token->getTypeName();
- $title = pht('Token %s: %s', $seq, $name);
+ $title = pht('Token %d: %s', $seq, $name);
$tokens[] = phutil_tag(
'span',
diff --git a/src/applications/phpast/controller/PhabricatorXHPASTViewTreeController.php b/src/applications/phpast/controller/PhabricatorXHPASTViewTreeController.php
--- a/src/applications/phpast/controller/PhabricatorXHPASTViewTreeController.php
+++ b/src/applications/phpast/controller/PhabricatorXHPASTViewTreeController.php
@@ -29,7 +29,7 @@
protected function buildTree($root) {
try {
$name = $root->getTypeName();
- $title = $root->getDescription();
+ $title = pht('Node %d: %s', $root->getID(), $name);
} catch (Exception $ex) {
$name = '???';
$title = '???';

File Metadata

Mime Type
text/plain
Expires
Sun, Oct 20, 2:15 PM (3 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6736659
Default Alt Text
D14697.id.diff (1 KB)

Event Timeline