@xberg-io/tree-sitter-language-pack 1.25.2 → 1.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +32 -1
- package/package.json +9 -9
- package/ts-pack-core-node.darwin-arm64.node +0 -0
- package/ts-pack-core-node.darwin-x64.node +0 -0
- package/ts-pack-core-node.linux-arm64-gnu.node +0 -0
- package/ts-pack-core-node.linux-arm64-musl.node +0 -0
- package/ts-pack-core-node.linux-x64-gnu.node +0 -0
- package/ts-pack-core-node.linux-x64-musl.node +0 -0
- package/ts-pack-core-node.win32-arm64-msvc.node +0 -0
- package/ts-pack-core-node.win32-x64-msvc.node +0 -0
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is auto-generated by alef — DO NOT EDIT.
|
|
2
|
-
// alef:hash:
|
|
2
|
+
// alef:hash:46317da62f751125dc0fe8a38f0b201bbf35ec47554bd8f9f2d7037855eb38e3
|
|
3
3
|
// To regenerate: alef generate
|
|
4
4
|
// To verify freshness: alef verify
|
|
5
5
|
/* eslint-disable */
|
|
@@ -630,6 +630,22 @@ export interface ImportInfo {
|
|
|
630
630
|
readonly span?: Span
|
|
631
631
|
}
|
|
632
632
|
|
|
633
|
+
/** A change to a source document, measured in UTF-8 bytes. */
|
|
634
|
+
export interface InputEdit {
|
|
635
|
+
/** Start offset in both documents. */
|
|
636
|
+
readonly startByte: number
|
|
637
|
+
/** End offset of the replaced text in the original document. */
|
|
638
|
+
readonly oldEndByte: number
|
|
639
|
+
/** End offset of the replacement text in the new document. */
|
|
640
|
+
readonly newEndByte: number
|
|
641
|
+
/** Start position in both documents. */
|
|
642
|
+
readonly startPosition: Point
|
|
643
|
+
/** End position in the original document. */
|
|
644
|
+
readonly oldEndPosition: Point
|
|
645
|
+
/** End position in the new document. */
|
|
646
|
+
readonly newEndPosition: Point
|
|
647
|
+
}
|
|
648
|
+
|
|
633
649
|
/**
|
|
634
650
|
* Thread-safe registry of tree-sitter language parsers.
|
|
635
651
|
*
|
|
@@ -878,6 +894,13 @@ export declare class Parser {
|
|
|
878
894
|
* there.
|
|
879
895
|
*/
|
|
880
896
|
parseBytes(source: Uint8Array): Tree | null
|
|
897
|
+
/**
|
|
898
|
+
* Parse new UTF-8 source using a previous tree edited to match the new source.
|
|
899
|
+
*
|
|
900
|
+
* Returns `None` if the tree's language differs from the parser's language
|
|
901
|
+
* or if the parse fails under the same limits as `Self.parse`.
|
|
902
|
+
*/
|
|
903
|
+
parseIncremental(source: string, oldTree: Tree): Tree | null
|
|
881
904
|
/**
|
|
882
905
|
* Reset internal state. The next call to `parse` will
|
|
883
906
|
* not be incremental.
|
|
@@ -1192,6 +1215,14 @@ export type SymbolKind =
|
|
|
1192
1215
|
|
|
1193
1216
|
/** A parsed syntax tree. Cheap to clone (refcount bump). */
|
|
1194
1217
|
export declare class Tree {
|
|
1218
|
+
/**
|
|
1219
|
+
* Return an edited copy for use with `Parser.parse_incremental`.
|
|
1220
|
+
*
|
|
1221
|
+
* Existing nodes and cursors still reference the original tree. Byte offsets
|
|
1222
|
+
* and positions must describe the same edit in the old and new source.
|
|
1223
|
+
* @throws Returns `Error.InvalidRange` for reversed or unrepresentable coordinates.
|
|
1224
|
+
*/
|
|
1225
|
+
edited(edit: InputEdit): Tree
|
|
1195
1226
|
/** Return the root `Node` of this tree. */
|
|
1196
1227
|
rootNode(): Node
|
|
1197
1228
|
/** Return a `TreeCursor` positioned at the root. */
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"name": "@xberg-io/tree-sitter-language-pack",
|
|
13
|
-
"version": "1.
|
|
13
|
+
"version": "1.27.0",
|
|
14
14
|
"description": "Pre-compiled tree-sitter grammars for 371 programming languages",
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"repository": {
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
"*.node"
|
|
36
36
|
],
|
|
37
37
|
"optionalDependencies": {
|
|
38
|
-
"@xberg-io/tree-sitter-language-pack-darwin-arm64": "1.
|
|
39
|
-
"@xberg-io/tree-sitter-language-pack-darwin-x64": "1.
|
|
40
|
-
"@xberg-io/tree-sitter-language-pack-linux-arm64-gnu": "1.
|
|
41
|
-
"@xberg-io/tree-sitter-language-pack-linux-arm64-musl": "1.
|
|
42
|
-
"@xberg-io/tree-sitter-language-pack-linux-x64-gnu": "1.
|
|
43
|
-
"@xberg-io/tree-sitter-language-pack-linux-x64-musl": "1.
|
|
44
|
-
"@xberg-io/tree-sitter-language-pack-win32-arm64-msvc": "1.
|
|
45
|
-
"@xberg-io/tree-sitter-language-pack-win32-x64-msvc": "1.
|
|
38
|
+
"@xberg-io/tree-sitter-language-pack-darwin-arm64": "1.27.0",
|
|
39
|
+
"@xberg-io/tree-sitter-language-pack-darwin-x64": "1.27.0",
|
|
40
|
+
"@xberg-io/tree-sitter-language-pack-linux-arm64-gnu": "1.27.0",
|
|
41
|
+
"@xberg-io/tree-sitter-language-pack-linux-arm64-musl": "1.27.0",
|
|
42
|
+
"@xberg-io/tree-sitter-language-pack-linux-x64-gnu": "1.27.0",
|
|
43
|
+
"@xberg-io/tree-sitter-language-pack-linux-x64-musl": "1.27.0",
|
|
44
|
+
"@xberg-io/tree-sitter-language-pack-win32-arm64-msvc": "1.27.0",
|
|
45
|
+
"@xberg-io/tree-sitter-language-pack-win32-x64-msvc": "1.27.0"
|
|
46
46
|
},
|
|
47
47
|
"napi": {
|
|
48
48
|
"packageName": "@xberg-io/tree-sitter-language-pack",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|