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.esm.js
CHANGED
|
@@ -3233,7 +3233,7 @@ class Expression {
|
|
|
3233
3233
|
return [...prefixTokens, ...atomTokens];
|
|
3234
3234
|
}
|
|
3235
3235
|
if (this._atomPatterns.includes(childReference)) {
|
|
3236
|
-
const postfixTokens = this.
|
|
3236
|
+
const postfixTokens = this.postfixPatterns.map(p => p.getTokens()).flat();
|
|
3237
3237
|
if (postfixTokens.length === 0) {
|
|
3238
3238
|
return this._binaryPatterns.map(p => p.getTokens()).flat();
|
|
3239
3239
|
}
|
|
@@ -3266,16 +3266,16 @@ class Expression {
|
|
|
3266
3266
|
return [...prefixPatterns, ...atomPatterns];
|
|
3267
3267
|
}
|
|
3268
3268
|
if (this._atomPatterns.includes(childReference)) {
|
|
3269
|
-
const postfixPatterns = this.
|
|
3269
|
+
const postfixPatterns = this.postfixPatterns.map(p => p.getPatterns()).flat();
|
|
3270
3270
|
if (postfixPatterns.length === 0) {
|
|
3271
3271
|
return this._binaryPatterns.map(p => p.getPatterns()).flat();
|
|
3272
3272
|
}
|
|
3273
3273
|
return postfixPatterns;
|
|
3274
3274
|
}
|
|
3275
3275
|
if (this._postfixPatterns.includes(childReference)) {
|
|
3276
|
-
const
|
|
3276
|
+
const postfixPatterns = this.postfixPatterns.map(p => p.getPatterns()).flat();
|
|
3277
3277
|
const binaryPatterns = this._binaryPatterns.map(p => p.getPatterns()).flat();
|
|
3278
|
-
return [...
|
|
3278
|
+
return [...postfixPatterns, ...binaryPatterns];
|
|
3279
3279
|
}
|
|
3280
3280
|
return [];
|
|
3281
3281
|
}
|