We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
contents
1 parent 8a2c58b commit 4b260ffCopy full SHA for 4b260ff
crates/ark/src/treesitter.rs
@@ -674,13 +674,14 @@ impl<'ts_query> TsQuery<'ts_query> {
674
}
675
676
/// Run the query on `contents` and collect all captures as (capture_name, node) pairs
677
- pub(crate) fn all_captures<'tree, 'query>(
+ pub(crate) fn all_captures<'tree, 'query, 'contents>(
678
&'query mut self,
679
node: tree_sitter::Node<'tree>,
680
- contents: &'query [u8],
+ contents: &'contents [u8],
681
) -> AllCaptures<'tree, 'query>
682
where
683
'tree: 'query,
684
+ 'contents: 'query,
685
{
686
let query = match self.query {
687
QueryStorage::Owned(ref q) => q,
0 commit comments