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/dist/index.js
CHANGED
|
@@ -3237,7 +3237,7 @@ class Expression {
|
|
|
3237
3237
|
return [...prefixTokens, ...atomTokens];
|
|
3238
3238
|
}
|
|
3239
3239
|
if (this._atomPatterns.includes(childReference)) {
|
|
3240
|
-
const postfixTokens = this.
|
|
3240
|
+
const postfixTokens = this.postfixPatterns.map(p => p.getTokens()).flat();
|
|
3241
3241
|
if (postfixTokens.length === 0) {
|
|
3242
3242
|
return this._binaryPatterns.map(p => p.getTokens()).flat();
|
|
3243
3243
|
}
|
|
@@ -3270,16 +3270,16 @@ class Expression {
|
|
|
3270
3270
|
return [...prefixPatterns, ...atomPatterns];
|
|
3271
3271
|
}
|
|
3272
3272
|
if (this._atomPatterns.includes(childReference)) {
|
|
3273
|
-
const postfixPatterns = this.
|
|
3273
|
+
const postfixPatterns = this.postfixPatterns.map(p => p.getPatterns()).flat();
|
|
3274
3274
|
if (postfixPatterns.length === 0) {
|
|
3275
3275
|
return this._binaryPatterns.map(p => p.getPatterns()).flat();
|
|
3276
3276
|
}
|
|
3277
3277
|
return postfixPatterns;
|
|
3278
3278
|
}
|
|
3279
3279
|
if (this._postfixPatterns.includes(childReference)) {
|
|
3280
|
-
const
|
|
3280
|
+
const postfixPatterns = this.postfixPatterns.map(p => p.getPatterns()).flat();
|
|
3281
3281
|
const binaryPatterns = this._binaryPatterns.map(p => p.getPatterns()).flat();
|
|
3282
|
-
return [...
|
|
3282
|
+
return [...postfixPatterns, ...binaryPatterns];
|
|
3283
3283
|
}
|
|
3284
3284
|
return [];
|
|
3285
3285
|
}
|