clarity-pattern-parser 10.1.4 → 10.1.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarity-pattern-parser",
3
- "version": "10.1.4",
3
+ "version": "10.1.5",
4
4
  "description": "Parsing Library for Typescript and Javascript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.esm.js",
@@ -108,7 +108,7 @@ export class Reference implements Pattern {
108
108
 
109
109
  const foundPattern = (pattern as Context).getPatternWithinContext(this.name);
110
110
 
111
- if (foundPattern != null) {
111
+ if (foundPattern != null && foundPattern.type !== "reference") {
112
112
  return foundPattern;
113
113
  }
114
114