diff options
Diffstat (limited to 'cli/graph_util.rs')
-rw-r--r-- | cli/graph_util.rs | 5 |
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()), |