Skip to content

Commit be4a197

Browse files
feat!: separate QueryCursor class
1 parent c940031 commit be4a197

File tree

7 files changed

+585
-365
lines changed

7 files changed

+585
-365
lines changed

src/main/java/io/github/treesitter/jtreesitter/Language.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,9 @@ public LookaheadIterator lookaheadIterator(@Unsigned short state) throws Illegal
255255
* Create a new query from a string containing one or more S-expression patterns.
256256
*
257257
* @throws QueryError If an error occurred while creating the query.
258+
* @deprecated Use the {@link Query#Query(Language, String) Query} constructor instead.
258259
*/
260+
@Deprecated(since = "0.25.0")
259261
public Query query(String source) throws QueryError {
260262
return new Query(this, source);
261263
}

0 commit comments

Comments
 (0)