Merge pull request #2840 from tree-sitter/language-reference-count
Introduce APIs for managing the lifetimes of languages, allow WASM languages to be deleted
This commit is contained in:
commit
1d8975319c
38 changed files with 724 additions and 483 deletions
|
|
@ -324,7 +324,7 @@ impl Loader {
|
|||
let src_path = path.join("src");
|
||||
self.load_language_at_path(&src_path, &src_path)
|
||||
})
|
||||
.map(|l| *l)
|
||||
.cloned()
|
||||
}
|
||||
|
||||
pub fn load_language_at_path(&self, src_path: &Path, header_path: &Path) -> Result<Language> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue