biome_diagnostics_categories

Crates.iobiome_diagnostics_categories
lib.rsbiome_diagnostics_categories
version0.5.7
sourcesrc
created_at2023-09-26 12:34:58.597912
updated_at2024-03-12 09:18:46.62966
descriptionDiagnostic categories for biome_diagnostics
homepagehttps://biomejs.dev/
repositoryhttps://github.com/biomejs/biome
max_upload_size
id983582
size33,170
Victorien Elvinger (Conaclos)

documentation

README

biome_diagnostics_categories

This crate contains a static registry of all the diagnostic categories used throughout the Biome codebase

Code Generation

The list of categories is defined in src/categories.rs using the define_dategories! macro, but instead of relying on conventional Rust macro expansion this crate instead uses a build script (in build.rs) to control how the code resulting from the macro is generated.

Specifically this lets us generate new identifiers, which is something plain Rust macros cannot do, without having to use full-blown procedural macros, which would require creating and building yet another crate.

Commit count: 6109

cargo fmt