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.browser.js
CHANGED
|
@@ -3239,7 +3239,7 @@
|
|
|
3239
3239
|
return [...prefixTokens, ...atomTokens];
|
|
3240
3240
|
}
|
|
3241
3241
|
if (this._atomPatterns.includes(childReference)) {
|
|
3242
|
-
const postfixTokens = this.
|
|
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.
|
|
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
|
|
3282
|
+
const postfixPatterns = this.postfixPatterns.map(p => p.getPatterns()).flat();
|
|
3283
3283
|
const binaryPatterns = this._binaryPatterns.map(p => p.getPatterns()).flat();
|
|
3284
|
-
return [...
|
|
3284
|
+
return [...postfixPatterns, ...binaryPatterns];
|
|
3285
3285
|
}
|
|
3286
3286
|
return [];
|
|
3287
3287
|
}
|