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.
@@ -3239,7 +3239,7 @@
3239
3239
  return [...prefixTokens, ...atomTokens];
3240
3240
  }
3241
3241
  if (this._atomPatterns.includes(childReference)) {
3242
- const postfixTokens = this.prefixPatterns.map(p => p.getTokens()).flat();
3242
+ const postfixTokens = this.postfixPatterns.map(p => p.getTokens()).flat();
3243
3243
  if (postfixTokens.length === 0) {
3244
3244
  return this._binaryPatterns.map(p => p.getTokens()).flat();
3245
3245
  }
@@ -3272,16 +3272,16 @@
3272
3272
  return [...prefixPatterns, ...atomPatterns];
3273
3273
  }
3274
3274
  if (this._atomPatterns.includes(childReference)) {
3275
- const postfixPatterns = this.prefixPatterns.map(p => p.getPatterns()).flat();
3275
+ const postfixPatterns = this.postfixPatterns.map(p => p.getPatterns()).flat();
3276
3276
  if (postfixPatterns.length === 0) {
3277
3277
  return this._binaryPatterns.map(p => p.getPatterns()).flat();
3278
3278
  }
3279
3279
  return postfixPatterns;
3280
3280
  }
3281
3281
  if (this._postfixPatterns.includes(childReference)) {
3282
- const postfixPaterns = this.postfixPatterns.map(p => p.getPatterns()).flat();
3282
+ const postfixPatterns = this.postfixPatterns.map(p => p.getPatterns()).flat();
3283
3283
  const binaryPatterns = this._binaryPatterns.map(p => p.getPatterns()).flat();
3284
- return [...postfixPaterns, ...binaryPatterns];
3284
+ return [...postfixPatterns, ...binaryPatterns];
3285
3285
  }
3286
3286
  return [];
3287
3287
  }