Skip to content

Commit

Permalink
feat(wasm): output symbol IDs in scope tree (#5266)
Browse files Browse the repository at this point in the history
`oxc_wasm` include `SymbolId`s in print-out of scopes.
  • Loading branch information
overlookmotel committed Aug 27, 2024
1 parent 6a49dc3 commit c23104b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oxc_wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ impl Oxc {
self.write_line("Bindings: {");
bindings.iter().for_each(|(name, &symbol_id)| {
let symbol_flags = self.semantic.symbols().get_flags(symbol_id);
self.write_line(format!(" {name} ({symbol_flags:?})",));
self.write_line(format!(" {name} ({symbol_id:?} {symbol_flags:?})",));
});
self.write_line("}");
}
Expand Down

0 comments on commit c23104b

Please sign in to comment.