mirror of
https://github.com/danbulant/oxc
synced 2026-05-22 21:58:36 +00:00
refactor(ast_tools): rename Output::into_raw method (#6948)
Rename `Output::output` to `Output::into_raw` - more descriptive name.
This commit is contained in:
parent
524d9c069f
commit
ef2f73ebed
3 changed files with 3 additions and 3 deletions
|
|
@ -159,7 +159,7 @@ fn run_passes<C>(runners: &mut [Box<dyn Runner<Context = C>>], ctx: &C) -> Resul
|
|||
let runner_outputs = result?;
|
||||
|
||||
let generator_path = runner.file_path();
|
||||
outputs.extend(runner_outputs.into_iter().map(|output| output.output(generator_path)));
|
||||
outputs.extend(runner_outputs.into_iter().map(|output| output.into_raw(generator_path)));
|
||||
}
|
||||
Ok(outputs)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ fn generate_ci_filter(outputs: &[RawOutput]) -> RawOutput {
|
|||
|
||||
log_success!();
|
||||
|
||||
Output::Yaml { path: GITHUB_WATCH_LIST_PATH.to_string(), code }.output(file!())
|
||||
Output::Yaml { path: GITHUB_WATCH_LIST_PATH.to_string(), code }.into_raw(file!())
|
||||
}
|
||||
|
||||
#[macro_use]
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ pub enum Output {
|
|||
}
|
||||
|
||||
impl Output {
|
||||
pub fn output(self, generator_path: &str) -> RawOutput {
|
||||
pub fn into_raw(self, generator_path: &str) -> RawOutput {
|
||||
let (path, code) = match self {
|
||||
Self::Rust { path, tokens } => {
|
||||
let code = print_rust(&tokens, generator_path);
|
||||
|
|
|
|||
Loading…
Reference in a new issue