clarity-pattern-parser 11.0.9 → 11.0.10

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.
@@ -3673,7 +3673,7 @@
3673
3673
  const name = nameNode.value;
3674
3674
  const anonymousNode = node.find(n => n.name === "configurable-anonymous-pattern");
3675
3675
  const isOptional = node.children[1] != null;
3676
- const anonymous = isOptional ? new Optional(name, this._buildPattern(anonymousNode)) : this._buildPattern(anonymousNode);
3676
+ const anonymous = isOptional ? new Optional(name, this._buildPattern(anonymousNode.children[0])) : this._buildPattern(anonymousNode.children[0]);
3677
3677
  this._parseContext.patternsByName.set(name, anonymous);
3678
3678
  }
3679
3679
  _buildComplexAnonymousPattern(node) {