Page MenuHomePhabricator

D19589.diff
No OneTemporary

D19589.diff

diff --git a/scripts/phutil_symbols.php b/scripts/phutil_symbols.php
--- a/scripts/phutil_symbols.php
+++ b/scripts/phutil_symbols.php
@@ -312,6 +312,18 @@
);
}
+$returns = $root->selectDescendantsOfType('n_DECLARATION_RETURN');
+foreach ($returns as $return) {
+ $hint = $return->getChildByIndex(0);
+ if ($hint->getTypeName() !== 'n_CLASS_NAME') {
+ continue;
+ }
+ $need[] = array(
+ 'type' => 'class/interface',
+ 'symbol' => $hint,
+ );
+}
+
// This is "catch (Exception $ex)".
$catches = $root->selectDescendantsOfType('n_CATCH');
foreach ($catches as $catch) {

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 1:52 AM (20 h, 37 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6909212
Default Alt Text
D19589.diff (594 B)

Event Timeline