clarity-pattern-parser 11.1.1 → 11.1.3

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.
@@ -2768,6 +2768,7 @@
2768
2768
  this._id = `expression-${indexId$1++}`;
2769
2769
  this._type = "expression";
2770
2770
  this._name = name;
2771
+ this._originalName = name;
2771
2772
  this._parent = null;
2772
2773
  this._firstIndex = 0;
2773
2774
  this._atomPatterns = [];
@@ -2900,7 +2901,7 @@
2900
2901
  if (pattern == null) {
2901
2902
  return false;
2902
2903
  }
2903
- return pattern.name === this.name;
2904
+ return pattern.name === this._originalName;
2904
2905
  }
2905
2906
  build() {
2906
2907
  if (!this._hasOrganized) {
@@ -3132,6 +3133,7 @@
3132
3133
  }
3133
3134
  clone(name = this._name) {
3134
3135
  const clone = new Expression(name, this._originalPatterns);
3136
+ clone._originalName = this._originalName;
3135
3137
  clone._id = this._id;
3136
3138
  return clone;
3137
3139
  }