Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14345970
D19589.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
594 B
Referenced Files
None
Subscribers
None
D19589.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D19589: Extract needed classes/interfaces from return types
Attached
Detach File
Event Timeline
Log In to Comment