Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit 0acf011

Browse files
committed
Update doc comment
1 parent 7f67e95 commit 0acf011

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

android-tree-sitter/src/main/java/com/itsaky/androidide/treesitter/TSParser.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,6 @@ public long getTimeout() {
130130
* parse only a *portion* of a document but still return a syntax tree whose ranges match up with
131131
* the document as a whole. You can also pass multiple disjoint ranges.
132132
*
133-
* <p>The second and third parameters specify the location and length of an array of ranges. The
134-
* parser does *not* take ownership of these ranges; it copies the data, so it doesn't matter how
135-
* these ranges are allocated.
136-
*
137133
* <p>If the ranges parameter is an empty array, then the entire document will be parsed.
138134
* Otherwise, the given ranges must be ordered from earliest to latest in the document, and they
139135
* must not overlap. That is, the following must hold for all `i` < `length - 1`:

android-tree-sitter/src/test/java/com/itsaky/androidide/treesitter/TreeCursorTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
package com.itsaky.androidide.treesitter;
22

33
import static com.google.common.truth.Truth.assertThat;
4+
import static com.itsaky.androidide.treesitter.TSInputEncoding.TSInputEncodingUTF16;
5+
import static com.itsaky.androidide.treesitter.TestUtils.readString;
6+
import static java.nio.file.Paths.get;
47

58
import org.junit.Test;
69

@@ -14,8 +17,7 @@ public void testWalk() throws UnsupportedEncodingException {
1417
parser.setLanguage(TSLanguages.python());
1518
try (TSTree tree =
1619
parser.parseString(
17-
"def foo(bar, baz):\n print(bar)\n print(baz)",
18-
TSInputEncoding.TSInputEncodingUTF16)) {
20+
"def foo(bar, baz):\n print(bar)\n print(baz)", TSInputEncodingUTF16)) {
1921
try (TSTreeCursor cursor = tree.getRootNode().walk()) {
2022
assertThat(cursor.getCurrentTreeCursorNode().getType()).isEqualTo("module");
2123
assertThat(cursor.getCurrentNode().getType()).isEqualTo("module");

0 commit comments

Comments
 (0)