Skip to content

Commit

Permalink
refactor(semantic): rename error labels in transformer checker snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Aug 21, 2024
1 parent 602244f commit 0247008
Show file tree
Hide file tree
Showing 7 changed files with 12,875 additions and 12,875 deletions.
12 changes: 6 additions & 6 deletions crates/oxc_semantic/src/post_transform_checker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ impl PostTransformChecker {
let message = format!(
"
Bindings mismatch:
previous {result_transformer}
current {result_rebuild}
after transform: {result_transformer}
rebuilt : {result_rebuild}
"
);
self.errors.push(OxcDiagnostic::error(message.trim().to_string()));
Expand Down Expand Up @@ -166,8 +166,8 @@ current {result_rebuild}
let message = format!(
"
Symbol mismatch:
previous {symbol_id_transformer:?}: {symbol_name_transformer:?}
current {symbol_id_rebuild:?}: {symbol_name_rebuild:?}
after transform: {symbol_id_transformer:?}: {symbol_name_transformer:?}
rebuilt : {symbol_id_rebuild:?}: {symbol_name_rebuild:?}
"
);
self.errors.push(OxcDiagnostic::error(message.trim().to_string()));
Expand Down Expand Up @@ -213,8 +213,8 @@ current {symbol_id_rebuild:?}: {symbol_name_rebuild:?}
let message = format!(
"
Reference mismatch:
previous {reference_id_transformer:?}: {symbol_name_transformer:?}
current {reference_id_rebuild:?}: {symbol_name_rebuild:?}
after transform: {reference_id_transformer:?}: {symbol_name_transformer:?}
rebuilt : {reference_id_rebuild:?}: {symbol_name_rebuild:?}
"
);
self.errors.push(OxcDiagnostic::error(message.trim().to_string()));
Expand Down
Loading

0 comments on commit 0247008

Please sign in to comment.