Skip to content

Commit

Permalink
feat(minifier): add MinimizeExitPoints and ExploitAssigns` boilerpl…
Browse files Browse the repository at this point in the history
…ate (#8203)
  • Loading branch information
Boshen committed Dec 31, 2024
1 parent 8ed9766 commit 4804933
Show file tree
Hide file tree
Showing 3 changed files with 522 additions and 51 deletions.
8 changes: 6 additions & 2 deletions crates/oxc_minifier/src/ast_passes/exploit_assigns.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use oxc_allocator::Vec;
use oxc_ast::ast::*;
use oxc_traverse::{traverse_mut_with_ctx, ReusableTraverseCtx, Traverse};
use oxc_traverse::{traverse_mut_with_ctx, ReusableTraverseCtx, Traverse, TraverseCtx};

use crate::CompressorPass;

Expand All @@ -17,7 +18,10 @@ impl<'a> CompressorPass<'a> for ExploitAssigns {
}
}

impl Traverse<'_> for ExploitAssigns {}
impl<'a> Traverse<'a> for ExploitAssigns {
fn exit_statements(&mut self, _stmts: &mut Vec<'a, Statement<'a>>, _ctx: &mut TraverseCtx<'a>) {
}
}

impl ExploitAssigns {
pub fn new() -> Self {
Expand Down
Loading

0 comments on commit 4804933

Please sign in to comment.