Page MenuHomePhabricator

D14697.id35915.diff
No OneTemporary

D14697.id35915.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
Sat, Nov 2, 6:58 AM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6736659
Default Alt Text
D14697.id35915.diff (1 KB)

Event Timeline