clarity-pattern-parser 11.0.19 → 11.0.20

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.
@@ -3042,7 +3042,7 @@
3042
3042
  if (pattern == null) {
3043
3043
  return false;
3044
3044
  }
3045
- return pattern.type === "reference" && pattern.name === this.name;
3045
+ return pattern.name === this.name;
3046
3046
  }
3047
3047
  parse(cursor) {
3048
3048
  this._firstIndex = cursor.index;
@@ -3577,8 +3577,8 @@
3577
3577
  const isLongEnough = pattern.children.length >= 2;
3578
3578
  return pattern.type === "reference" ||
3579
3579
  (pattern.type === "sequence" && isLongEnough &&
3580
- (firstChild.type === "reference" && firstChild.name === name) ||
3581
- (lastChild.type === "reference" && lastChild.name === name));
3580
+ (firstChild.name === name) ||
3581
+ (lastChild.name === name));
3582
3582
  }
3583
3583
  _buildPattern(node) {
3584
3584
  const type = node.name;