Skip to content

Commit ba32429

Browse files
committed
refactor: remove all swc_trace
1 parent 182dc3a commit ba32429

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+0
-84
lines changed

crates/swc_cli_impl/src/commands/bundle.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use swc_core::trace_macro::swc_trace;
44
#[derive(Parser)]
55
pub struct BundleOptions {}
66

7-
#[swc_trace]
87
impl super::CommandRunner for BundleOptions {
98
fn execute(&self) -> anyhow::Result<()> {
109
unimplemented!("Bundle command is not yet implemented")

crates/swc_cli_impl/src/commands/compile.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ struct InputContext {
284284
file_extension: PathBuf,
285285
}
286286

287-
#[swc_trace]
288287
impl CompileOptions {
289288
fn build_transform_options(&self, file_path: &Option<&Path>) -> anyhow::Result<Options> {
290289
let config_file = self.config_file.as_ref().map(|config_file_path| {
@@ -550,7 +549,6 @@ impl CompileOptions {
550549
}
551550
}
552551

553-
#[swc_trace]
554552
impl super::CommandRunner for CompileOptions {
555553
fn execute(&self) -> anyhow::Result<()> {
556554
let guard = if self.experimental_trace {

crates/swc_cli_impl/src/commands/lint.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use swc_core::trace_macro::swc_trace;
44
#[derive(Parser)]
55
pub struct LintOptions {}
66

7-
#[swc_trace]
87
impl super::CommandRunner for LintOptions {
98
fn execute(&self) -> anyhow::Result<()> {
109
unimplemented!("Lint command is not yet implemented")

crates/swc_cli_impl/src/commands/minify.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use swc_core::trace_macro::swc_trace;
44
#[derive(Parser)]
55
pub struct MinifyOptions {}
66

7-
#[swc_trace]
87
impl super::CommandRunner for MinifyOptions {
98
fn execute(&self) -> anyhow::Result<()> {
109
unimplemented!("Minify command is not yet implemented")

crates/swc_ecma_compat_bugfixes/src/async_arrows_in_class.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ struct AsyncArrowsInClass {
2626
}
2727

2828
/// TODO: VisitMut
29-
#[swc_trace]
3029
impl Fold for AsyncArrowsInClass {
3130
standard_only_fold!();
3231

crates/swc_ecma_compat_bugfixes/src/edge_default_param.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ struct EdgeDefaultParam {
1616
in_arrow: bool,
1717
}
1818

19-
#[swc_trace]
2019
impl VisitMut for EdgeDefaultParam {
2120
noop_visit_mut_type!(fail);
2221

crates/swc_ecma_compat_bugfixes/src/safari_id_destructuring_collision_in_function_expression.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ impl SafariIdDestructuringCollisionInFunctionExpression {
3030
}
3131
}
3232

33-
#[swc_trace]
3433
impl VisitMut for SafariIdDestructuringCollisionInFunctionExpression {
3534
noop_visit_mut_type!(fail);
3635

crates/swc_ecma_compat_bugfixes/src/template_literal_caching.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ impl TemplateLiteralCaching {
5757
}
5858

5959
/// TODO: VisitMut
60-
#[swc_trace]
6160
impl Fold for TemplateLiteralCaching {
6261
standard_only_fold!();
6362

crates/swc_ecma_compat_es2015/src/arrow.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ struct Arrow {
7070
hoister: FnEnvHoister,
7171
}
7272

73-
#[swc_trace]
7473
impl VisitMut for Arrow {
7574
noop_visit_mut_type!(fail);
7675

crates/swc_ecma_compat_es2015/src/block_scoped_fn.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ pub fn block_scoped_functions() -> impl Pass {
1111
#[derive(Clone, Copy)]
1212
struct BlockScopedFns;
1313

14-
#[swc_trace]
1514
impl VisitMut for BlockScopedFns {
1615
noop_visit_mut_type!(fail);
1716

0 commit comments

Comments
 (0)