From d192d84a0e0b9954882211b827f17512ad37be7d Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 13 Apr 2023 14:03:07 -0400 Subject: refactor(cli): add `Emitter` struct (#18690) Removes the functions in the `emit` module and replaces them with an `Emitter` struct that can have "ctor dependencies" injected rather than using functions to pass along the dependencies. This is part of a long term refactor to move more functionality out of proc state. --- cli/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/main.rs') diff --git a/cli/main.rs b/cli/main.rs index 849e0979c..60eb9288f 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -71,7 +71,7 @@ async fn run_subcommand(flags: Flags) -> Result { DenoSubcommand::Cache(cache_flags) => { let ps = ProcState::from_flags(flags).await?; ps.load_and_type_check_files(&cache_flags.files).await?; - ps.cache_module_emits()?; + ps.emitter.cache_module_emits(&ps.graph())?; Ok(0) } DenoSubcommand::Check(check_flags) => { -- cgit v1.2.3