clarity-pattern-parser 10.1.4 → 10.1.6
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 +2 -2
- package/dist/index.browser.js.map +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/patterns/Reference.ts +2 -2
package/dist/index.browser.js
CHANGED
|
@@ -848,14 +848,14 @@
|
|
|
848
848
|
continue;
|
|
849
849
|
}
|
|
850
850
|
const foundPattern = pattern.getPatternWithinContext(this.name);
|
|
851
|
-
if (foundPattern != null) {
|
|
851
|
+
if (foundPattern != null && foundPattern.type !== "reference") {
|
|
852
852
|
return foundPattern;
|
|
853
853
|
}
|
|
854
854
|
pattern = pattern.parent;
|
|
855
855
|
}
|
|
856
856
|
const root = this._getRoot();
|
|
857
857
|
return findPattern(root, (pattern) => {
|
|
858
|
-
return pattern.name === this._name && pattern.type !== "reference"
|
|
858
|
+
return pattern.name === this._name && pattern.type !== "reference";
|
|
859
859
|
});
|
|
860
860
|
}
|
|
861
861
|
_getRoot() {
|