Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15384439
D9953.id23886.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D9953.id23886.diff
View Options
diff --git a/src/moduleutils/PhutilLibraryMapBuilder.php b/src/moduleutils/PhutilLibraryMapBuilder.php
--- a/src/moduleutils/PhutilLibraryMapBuilder.php
+++ b/src/moduleutils/PhutilLibraryMapBuilder.php
@@ -15,6 +15,9 @@
private $quiet = true;
private $subprocessLimit = 8;
+ private $fileSymbolMap;
+ private $librarySymbolMap;
+
const LIBRARY_MAP_VERSION_KEY = '__library_version__';
const LIBRARY_MAP_VERSION = 2;
@@ -121,6 +124,8 @@
$progress->done();
}
+ $this->fileSymbolMap = $symbol_map;
+
// We're done building the cache, so write it out immediately. Note that
// we've only retained entries for files we found, so this implicitly cleans
// out old cache entries.
@@ -128,7 +133,17 @@
// Our map is up to date, so either show it on stdout or write it to disk.
$this->log("Building library map...\n");
- return $this->buildLibraryMap($symbol_map);
+
+ $this->librarySymbolMap = $this->buildLibraryMap($symbol_map);
+
+ return $this->librarySymbolMap;
+ }
+
+ public function buildFileSymbolMap() {
+ if ($this->fileSymbolMap === null) {
+ $this->buildMap();
+ }
+ return $this->fileSymbolMap;
}
/**
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 15, 7:54 PM (1 w, 17 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7678149
Default Alt Text
D9953.id23886.diff (1 KB)
Attached To
Mode
D9953: Expose the file symbol map from PhutilLibraryMapBuilder
Attached
Detach File
Event Timeline
Log In to Comment