Page MenuHomePhabricator

D7584.id.diff
No OneTemporary

D7584.id.diff

Index: src/symbols/PhutilSymbolLoader.php
===================================================================
--- src/symbols/PhutilSymbolLoader.php
+++ src/symbols/PhutilSymbolLoader.php
@@ -169,6 +169,13 @@
);
}
+ $names = null;
+ if ($this->base) {
+ $names = $this->selectDescendantsOf(
+ $bootloader->getClassTree(),
+ $this->base);
+ }
+
$symbols = array();
foreach ($libraries as $library) {
$map = $bootloader->getLibraryMap($library);
@@ -198,6 +205,13 @@
} else {
$filtered_map = array();
}
+ } else if ($names !== null) {
+ $filtered_map = array();
+ foreach ($names as $name => $ignored) {
+ if (isset($lookup_map[$name])) {
+ $filtered_map[$name] = $lookup_map[$name];
+ }
+ }
} else {
// Otherwise, start with everything.
$filtered_map = $lookup_map;
@@ -223,22 +237,6 @@
}
}
- if ($this->base) {
- $names = $this->selectDescendantsOf(
- $bootloader->getClassTree(),
- $this->base);
-
- foreach ($symbols as $symbol_key => $symbol) {
- $type = $symbol['type'];
- if ($type == 'class' || $type == 'interface') {
- if (isset($names[$symbol['name']])) {
- continue;
- }
- }
- unset($symbols[$symbol_key]);
- }
- }
-
if (!$this->suppressLoad) {
$caught = null;
foreach ($symbols as $symbol) {
@@ -320,6 +318,7 @@
return $objects;
}
+
/* -( Internals )---------------------------------------------------------- */

File Metadata

Mime Type
text/plain
Expires
Thu, Oct 31, 2:21 PM (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6718806
Default Alt Text
D7584.id.diff (1 KB)

Event Timeline