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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarity-pattern-parser",
3
- "version": "11.5.1",
3
+ "version": "11.5.2",
4
4
  "description": "Parsing Library for Typescript and Javascript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.esm.js",
@@ -511,7 +511,7 @@ export class Expression implements Pattern {
511
511
  }
512
512
 
513
513
  if (this._atomPatterns.includes(childReference)) {
514
- const postfixTokens = this.prefixPatterns.map(p => p.getTokens()).flat();
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.prefixPatterns.map(p => p.getPatterns()).flat();
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 postfixPaterns = this.postfixPatterns.map(p => p.getPatterns()).flat();
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 [...postfixPaterns, ...binaryPatterns];
572
+ return [...postfixPatterns, ...binaryPatterns];
573
573
  }
574
574
 
575
575
  return [];