oxc/crates
Don Isaac 47541339a9
feat(ast): AstKind::debug_name() (#665)
Adds `AstKind::debug_name()`, which returns the name of an AstKind
struct with a few minor details as applicable. I intentionally did not
make `AstKind` implement `Display`, as this method returns minimal
information. Additionally, this method only exists in debug builds. I've
hidden it behind a `#[cfg(debug_assertions)]`, so it won't affect
release builds.

This code was extracted from #642, where it as created while debugging
iteration over ancestor nodes. I figured it belonged in its own PR and
may be useful to other devs.
2023-07-31 10:04:52 +08:00
..
oxc chore(oxc): remove mention of nightly 2023-07-27 14:14:56 +08:00
oxc_allocator chore: release crates as v0.1.0 2023-07-27 13:54:17 +08:00
oxc_ast feat(ast): AstKind::debug_name() (#665) 2023-07-31 10:04:52 +08:00
oxc_ast_lower chore: release crates as v0.1.0 2023-07-27 13:54:17 +08:00
oxc_cli feat(cli): separate warnings and errors numbers and print separately 2023-07-29 11:02:51 +08:00
oxc_diagnostics chore: release crates as v0.1.0 2023-07-27 13:54:17 +08:00
oxc_formatter chore: release crates as v0.1.0 2023-07-27 13:54:17 +08:00
oxc_hir feat(minifier): initialize conditions folding (#658) 2023-07-30 01:02:32 +08:00
oxc_index chore: release crates as v0.1.0 2023-07-27 13:54:17 +08:00
oxc_linter feat(linter): no-focused-test(eslint-jest-plugin) (#609) 2023-07-30 20:57:30 +08:00
oxc_macros feat(linter): add style category and change no-empty-interface to style 2023-07-29 11:02:51 +08:00
oxc_minifier feat(minifier): initialize conditions folding (#658) 2023-07-30 01:02:32 +08:00
oxc_napi chore(rust): update crate info, add minimal rust-version, add categories 2023-07-27 13:33:18 +08:00
oxc_parser chore(rust): run cargo fmt --all -- crates/**/*.rs 2023-07-28 13:57:12 +08:00
oxc_query feat(query): add ast counterpart to JSXOpeningElement (#668) 2023-07-30 19:51:25 -04:00
oxc_resolver feat(resolver): port the rest of the exports field tests (#659) 2023-07-30 01:03:10 +08:00
oxc_semantic chore: release crates as v0.1.0 2023-07-27 13:54:17 +08:00
oxc_span chore: release crates as v0.1.0 2023-07-27 13:54:17 +08:00
oxc_syntax feat(minifier): initialize conditions folding (#658) 2023-07-30 01:02:32 +08:00
oxc_type_synthesis chore(rust): update crate info, add minimal rust-version, add categories 2023-07-27 13:33:18 +08:00
oxc_wasm chore(rust): update crate info, add minimal rust-version, add categories 2023-07-27 13:33:18 +08:00