mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
fix(semantic): transform checker output symbol names in errors (#5038)
Transform checker: For symbol mismatch errors, output symbol names.
This commit is contained in:
parent
d69e34e983
commit
47029c4d45
1 changed files with 2 additions and 2 deletions
|
|
@ -150,8 +150,8 @@ current scope {cur_scope_id:?}: {current_bindings:?}
|
||||||
let message = format!(
|
let message = format!(
|
||||||
"
|
"
|
||||||
Symbol Mismatch:
|
Symbol Mismatch:
|
||||||
previous symbol {prev_symbol_id:?}: {prev_symbol_id:?}
|
previous symbol {prev_symbol_id:?}: {prev_symbol_name:?}
|
||||||
current symbol {cur_symbol_id:?}: {cur_symbol_id:?}
|
current symbol {cur_symbol_id:?}: {cur_symbol_name:?}
|
||||||
"
|
"
|
||||||
);
|
);
|
||||||
self.errors.push(OxcDiagnostic::error(message.trim().to_string()));
|
self.errors.push(OxcDiagnostic::error(message.trim().to_string()));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue