@lezer/common 1.2.2 → 1.2.3
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/dist/index.cjs +3 -3
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1153,7 +1153,7 @@ class TreeCursor {
|
|
|
1153
1153
|
*/
|
|
1154
1154
|
next(enter = true) { return this.move(1, enter); }
|
|
1155
1155
|
/**
|
|
1156
|
-
Move to the next node in a last-to-first pre-order
|
|
1156
|
+
Move to the next node in a last-to-first pre-order traversal. A
|
|
1157
1157
|
node is followed by its last child or, if it has none, its
|
|
1158
1158
|
previous sibling or the previous sibling of the first parent
|
|
1159
1159
|
node that has one.
|
|
@@ -1229,10 +1229,10 @@ class TreeCursor {
|
|
|
1229
1229
|
if (mustLeave && leave)
|
|
1230
1230
|
leave(this);
|
|
1231
1231
|
mustLeave = this.type.isAnonymous;
|
|
1232
|
-
if (this.nextSibling())
|
|
1233
|
-
break;
|
|
1234
1232
|
if (!depth)
|
|
1235
1233
|
return;
|
|
1234
|
+
if (this.nextSibling())
|
|
1235
|
+
break;
|
|
1236
1236
|
this.parent();
|
|
1237
1237
|
depth--;
|
|
1238
1238
|
mustLeave = true;
|
package/dist/index.d.cts
CHANGED
|
@@ -1024,7 +1024,7 @@ declare class TreeCursor implements SyntaxNodeRef {
|
|
|
1024
1024
|
*/
|
|
1025
1025
|
next(enter?: boolean): boolean;
|
|
1026
1026
|
/**
|
|
1027
|
-
Move to the next node in a last-to-first pre-order
|
|
1027
|
+
Move to the next node in a last-to-first pre-order traversal. A
|
|
1028
1028
|
node is followed by its last child or, if it has none, its
|
|
1029
1029
|
previous sibling or the previous sibling of the first parent
|
|
1030
1030
|
node that has one.
|
package/dist/index.d.ts
CHANGED
|
@@ -1024,7 +1024,7 @@ declare class TreeCursor implements SyntaxNodeRef {
|
|
|
1024
1024
|
*/
|
|
1025
1025
|
next(enter?: boolean): boolean;
|
|
1026
1026
|
/**
|
|
1027
|
-
Move to the next node in a last-to-first pre-order
|
|
1027
|
+
Move to the next node in a last-to-first pre-order traversal. A
|
|
1028
1028
|
node is followed by its last child or, if it has none, its
|
|
1029
1029
|
previous sibling or the previous sibling of the first parent
|
|
1030
1030
|
node that has one.
|
package/dist/index.js
CHANGED
|
@@ -1151,7 +1151,7 @@ class TreeCursor {
|
|
|
1151
1151
|
*/
|
|
1152
1152
|
next(enter = true) { return this.move(1, enter); }
|
|
1153
1153
|
/**
|
|
1154
|
-
Move to the next node in a last-to-first pre-order
|
|
1154
|
+
Move to the next node in a last-to-first pre-order traversal. A
|
|
1155
1155
|
node is followed by its last child or, if it has none, its
|
|
1156
1156
|
previous sibling or the previous sibling of the first parent
|
|
1157
1157
|
node that has one.
|
|
@@ -1227,10 +1227,10 @@ class TreeCursor {
|
|
|
1227
1227
|
if (mustLeave && leave)
|
|
1228
1228
|
leave(this);
|
|
1229
1229
|
mustLeave = this.type.isAnonymous;
|
|
1230
|
-
if (this.nextSibling())
|
|
1231
|
-
break;
|
|
1232
1230
|
if (!depth)
|
|
1233
1231
|
return;
|
|
1232
|
+
if (this.nextSibling())
|
|
1233
|
+
break;
|
|
1234
1234
|
this.parent();
|
|
1235
1235
|
depth--;
|
|
1236
1236
|
mustLeave = true;
|