clarity-pattern-parser 11.0.27 → 11.0.28

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.js CHANGED
@@ -915,7 +915,7 @@ class Reference {
915
915
  if (pattern === null) {
916
916
  throw new Error(`Couldn't find '${this._referencePatternName}' pattern within tree.`);
917
917
  }
918
- const clonedPattern = pattern.clone();
918
+ const clonedPattern = pattern.clone(this._name);
919
919
  clonedPattern.parent = this;
920
920
  this._pattern = clonedPattern;
921
921
  this._children = [this._pattern];