clarity-pattern-parser 10.2.1 → 10.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.js
CHANGED
|
@@ -2788,11 +2788,11 @@ class ExpressionPattern {
|
|
|
2788
2788
|
}
|
|
2789
2789
|
_isBinaryPattern(pattern) {
|
|
2790
2790
|
return pattern.type === "sequence" &&
|
|
2791
|
+
pattern.children.length === 3 &&
|
|
2791
2792
|
pattern.children[0].type === "reference" &&
|
|
2792
2793
|
pattern.children[0].name === this.name &&
|
|
2793
2794
|
pattern.children[2].type === "reference" &&
|
|
2794
|
-
pattern.children[2].name === this.name
|
|
2795
|
-
pattern.children.length === 3;
|
|
2795
|
+
pattern.children[2].name === this.name;
|
|
2796
2796
|
}
|
|
2797
2797
|
_extractDelimiter(pattern) {
|
|
2798
2798
|
if (pattern.type === "right-associated") {
|
|
@@ -2816,7 +2816,7 @@ class ExpressionPattern {
|
|
|
2816
2816
|
return pattern.type === "sequence" &&
|
|
2817
2817
|
pattern.children[0].type === "reference" &&
|
|
2818
2818
|
pattern.children[0].name === this.name &&
|
|
2819
|
-
pattern.children.length >
|
|
2819
|
+
pattern.children.length > 1;
|
|
2820
2820
|
}
|
|
2821
2821
|
_extractRecursiveTail(pattern) {
|
|
2822
2822
|
if (pattern.type === "right-associated") {
|