clarity-pattern-parser 9.2.4 → 9.2.5
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/ast/Node.d.ts +0 -2
- package/dist/index.browser.js +0 -2
- package/dist/index.browser.js.map +1 -1
- package/dist/index.esm.js +0 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/ast/Node.test.ts +0 -6
- package/src/ast/Node.ts +1 -5
package/package.json
CHANGED
package/src/ast/Node.test.ts
CHANGED
|
@@ -307,16 +307,12 @@ describe("Node", () => {
|
|
|
307
307
|
type: "parent",
|
|
308
308
|
name: "parent",
|
|
309
309
|
value: "AB",
|
|
310
|
-
firstIndex: 0,
|
|
311
|
-
lastIndex: 0,
|
|
312
310
|
startIndex: 0,
|
|
313
311
|
endIndex: 1,
|
|
314
312
|
children: [{
|
|
315
313
|
type: "a",
|
|
316
314
|
name: "a",
|
|
317
315
|
value: "A",
|
|
318
|
-
firstIndex: 0,
|
|
319
|
-
lastIndex: 0,
|
|
320
316
|
startIndex: 0,
|
|
321
317
|
endIndex: 1,
|
|
322
318
|
children: [],
|
|
@@ -324,8 +320,6 @@ describe("Node", () => {
|
|
|
324
320
|
type: "b",
|
|
325
321
|
name: "b",
|
|
326
322
|
value: "B",
|
|
327
|
-
firstIndex: 0,
|
|
328
|
-
lastIndex: 0,
|
|
329
323
|
startIndex: 0,
|
|
330
324
|
endIndex: 1,
|
|
331
325
|
children: [],
|
package/src/ast/Node.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
export interface CycleFreeNode {
|
|
2
2
|
type: string;
|
|
3
3
|
name: string;
|
|
4
|
-
firstIndex: number;
|
|
5
|
-
lastIndex: number;
|
|
6
4
|
startIndex: number;
|
|
7
5
|
endIndex: number;
|
|
8
6
|
value: string;
|
|
@@ -269,12 +267,10 @@ export class Node {
|
|
|
269
267
|
type: this._type,
|
|
270
268
|
name: this._name,
|
|
271
269
|
value: this.toString(),
|
|
272
|
-
firstIndex: this._firstIndex,
|
|
273
|
-
lastIndex: this._lastIndex,
|
|
274
270
|
startIndex: this.startIndex,
|
|
275
271
|
endIndex: this.endIndex,
|
|
276
272
|
children: this._children.map(c => c.toCycleFreeObject()),
|
|
277
|
-
}
|
|
273
|
+
};
|
|
278
274
|
}
|
|
279
275
|
|
|
280
276
|
toJson(space?: number): string {
|