summaryrefslogtreecommitdiff
path: root/cli/graph_util.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-05-28 16:23:11 -0400
committerGitHub <noreply@github.com>2024-05-28 16:23:11 -0400
commit57617af16a4280aa3bc54292f18763942d67d460 (patch)
treef6246576cc8715c6cea1dc3ebe15720bde5bb512 /cli/graph_util.rs
parent3e8f29ae4123abaddd9544a87e16448219fdd5f7 (diff)
perf: parse source files in parallel (#23858)
Diffstat (limited to 'cli/graph_util.rs')
-rw-r--r--cli/graph_util.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/graph_util.rs b/cli/graph_util.rs
index 81ae21d0d..017d6b35d 100644
--- a/cli/graph_util.rs
+++ b/cli/graph_util.rs
@@ -470,8 +470,9 @@ impl ModuleGraphBuilder {
}
let maybe_imports = self.options.to_maybe_imports()?;
- let parser = self.parsed_source_cache.as_capturing_parser();
- let analyzer = self.module_info_cache.as_module_analyzer(&parser);
+ let analyzer = self
+ .module_info_cache
+ .as_module_analyzer(&self.parsed_source_cache);
let mut loader = match options.loader {
Some(loader) => MutLoaderRef::Borrowed(loader),
None => MutLoaderRef::Owned(self.create_graph_loader()),