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/dist/index.browser.js
CHANGED
|
@@ -2966,6 +2966,7 @@
|
|
|
2966
2966
|
this._firstIndex = cursor.index;
|
|
2967
2967
|
const node = this._tryToParse(cursor);
|
|
2968
2968
|
if (node != null) {
|
|
2969
|
+
node.normalize(this._firstIndex);
|
|
2969
2970
|
cursor.moveTo(node.lastIndex);
|
|
2970
2971
|
cursor.resolveError();
|
|
2971
2972
|
this._compactResult(node);
|
|
@@ -3072,7 +3073,6 @@
|
|
|
3072
3073
|
}
|
|
3073
3074
|
const frontExpression = lastBinaryNode == null ? lastAtomNode : lastBinaryNode.findRoot();
|
|
3074
3075
|
const recursiveNode = createNode(name, [frontExpression, ...node.children]);
|
|
3075
|
-
recursiveNode.normalize(this._firstIndex);
|
|
3076
3076
|
return recursiveNode;
|
|
3077
3077
|
}
|
|
3078
3078
|
else {
|
|
@@ -3080,7 +3080,6 @@
|
|
|
3080
3080
|
lastAtomNode = createNode(prefixName, [prefix, lastAtomNode]);
|
|
3081
3081
|
}
|
|
3082
3082
|
const recursiveNode = createNode(name, [lastAtomNode, ...node.children]);
|
|
3083
|
-
recursiveNode.normalize(lastAtomNode.startIndex);
|
|
3084
3083
|
lastAtomNode = recursiveNode;
|
|
3085
3084
|
if (cursor.hasNext()) {
|
|
3086
3085
|
cursor.next();
|
|
@@ -3189,7 +3188,6 @@
|
|
|
3189
3188
|
return lastAtomNode;
|
|
3190
3189
|
}
|
|
3191
3190
|
}
|
|
3192
|
-
root.normalize(this._firstIndex);
|
|
3193
3191
|
return root;
|
|
3194
3192
|
}
|
|
3195
3193
|
}
|