mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-10 07:36:22 -04:00
`Node::kind`, `Node::grammar_name`, the field name accessors, `TreeCursor::field_name`, and the `Language` name lookups returned `&'static str` while pointing into storage owned by the `TSLanguage`. Releasing the last handle to a Wasm language frees that storage. `Node` and `TreeCursor` now return `&'tree str`, which is ok because `ts_tree_new` takes a reference to the language via `ts_language_copy` and holds it until `ts_tree_delete`. The `Language` lookups return strings borrowed from `&self`. |
||
|---|---|---|
| .. | ||
| binding_rust | ||
| binding_web | ||
| include/tree_sitter | ||
| lldb_pretty_printers | ||
| src | ||
| .ccls | ||
| Cargo.toml | ||
| LICENSE | ||
| package.nix | ||
| README.md | ||
| tree-sitter.pc.in | ||
Subdirectories
src- C source code for the Tree-sitter libraryinclude- C headers for the Tree-sitter librarybinding_rust- Rust bindings to the Tree-sitter librarybinding_web- JavaScript bindings to the Tree-sitter library, using WebAssembly