mirror of
https://github.com/RGBCube/cstree
synced 2025-07-29 18:17:44 +00:00
Use 32 bits for RawSyntaxKind
internally (#49)
This commit is contained in:
parent
8750498b7a
commit
2aa543036f
11 changed files with 42 additions and 39 deletions
|
@ -11,6 +11,7 @@
|
|||
* Internal performance improvements for up to 10% faster tree building by avoiding unnecessary duplication of elements.
|
||||
* Use `NonNull` for the internal representation of `SyntaxNode`, meaning it now benefits from niche optimizations (`Option<SyntaxNode>` is now the same size as `SyntaxNode` itself: the size of a pointer).
|
||||
* `SyntaxKind` has been renamed to `RawSyntaxKind` to no longer conflict with user-defined `SyntaxKind` enumerations.
|
||||
* `RawSyntaxKind` has been changed to use a 32-bit index internally, which means existing `Language` implementations and syntax kind `enum`s need to be adjusted to `#[repr(u32)]` and the corresponding conversions.
|
||||
* The crate's export module structure has been reorganized to give different groups of definitions their own submodules. A `cstree::prelude` module is available, containing the most commonly needed types that were previously accessible via `use cstree::*`. Otherwise, the module structure is now as follows:
|
||||
* `cstree`
|
||||
* `Language`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue