clarity-pattern-parser 10.3.6 → 10.3.7
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/package.json
CHANGED
|
@@ -257,6 +257,8 @@ export class ExpressionPattern implements Pattern {
|
|
|
257
257
|
const node = this._tryToParse(cursor);
|
|
258
258
|
|
|
259
259
|
if (node != null) {
|
|
260
|
+
node.normalize(this._firstIndex);
|
|
261
|
+
|
|
260
262
|
cursor.moveTo(node.lastIndex);
|
|
261
263
|
cursor.resolveError();
|
|
262
264
|
this._compactResult(node);
|
|
@@ -382,7 +384,6 @@ export class ExpressionPattern implements Pattern {
|
|
|
382
384
|
const frontExpression = lastBinaryNode == null ? lastAtomNode as Node : lastBinaryNode.findRoot();
|
|
383
385
|
const recursiveNode = createNode(name, [frontExpression, ...node.children]);
|
|
384
386
|
|
|
385
|
-
recursiveNode.normalize(this._firstIndex);
|
|
386
387
|
|
|
387
388
|
return recursiveNode;
|
|
388
389
|
} else {
|
|
@@ -391,7 +392,6 @@ export class ExpressionPattern implements Pattern {
|
|
|
391
392
|
}
|
|
392
393
|
|
|
393
394
|
const recursiveNode = createNode(name, [lastAtomNode, ...node.children]);
|
|
394
|
-
recursiveNode.normalize(lastAtomNode.startIndex);
|
|
395
395
|
lastAtomNode = recursiveNode;
|
|
396
396
|
|
|
397
397
|
if (cursor.hasNext()) {
|
|
@@ -515,7 +515,6 @@ export class ExpressionPattern implements Pattern {
|
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
|
|
518
|
-
root.normalize(this._firstIndex);
|
|
519
518
|
return root;
|
|
520
519
|
}
|
|
521
520
|
}
|