clarity-pattern-parser 11.5.1 → 11.5.2
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 +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/patterns/Expression.ts +4 -4
package/package.json
CHANGED
|
@@ -511,7 +511,7 @@ export class Expression implements Pattern {
|
|
|
511
511
|
}
|
|
512
512
|
|
|
513
513
|
if (this._atomPatterns.includes(childReference)) {
|
|
514
|
-
const postfixTokens = this.
|
|
514
|
+
const postfixTokens = this.postfixPatterns.map(p => p.getTokens()).flat();
|
|
515
515
|
|
|
516
516
|
if (postfixTokens.length === 0) {
|
|
517
517
|
return this._binaryPatterns.map(p => p.getTokens()).flat();
|
|
@@ -556,7 +556,7 @@ export class Expression implements Pattern {
|
|
|
556
556
|
}
|
|
557
557
|
|
|
558
558
|
if (this._atomPatterns.includes(childReference)) {
|
|
559
|
-
const postfixPatterns = this.
|
|
559
|
+
const postfixPatterns = this.postfixPatterns.map(p => p.getPatterns()).flat();
|
|
560
560
|
|
|
561
561
|
if (postfixPatterns.length === 0) {
|
|
562
562
|
return this._binaryPatterns.map(p => p.getPatterns()).flat();
|
|
@@ -566,10 +566,10 @@ export class Expression implements Pattern {
|
|
|
566
566
|
}
|
|
567
567
|
|
|
568
568
|
if (this._postfixPatterns.includes(childReference)) {
|
|
569
|
-
const
|
|
569
|
+
const postfixPatterns = this.postfixPatterns.map(p => p.getPatterns()).flat();
|
|
570
570
|
const binaryPatterns = this._binaryPatterns.map(p => p.getPatterns()).flat();
|
|
571
571
|
|
|
572
|
-
return [...
|
|
572
|
+
return [...postfixPatterns, ...binaryPatterns];
|
|
573
573
|
}
|
|
574
574
|
|
|
575
575
|
return [];
|