clarity-pattern-parser 11.0.24 → 11.0.25

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.
@@ -2824,12 +2824,15 @@
2824
2824
  }
2825
2825
  return pattern.name === this.name;
2826
2826
  }
2827
- parse(cursor) {
2828
- this._firstIndex = cursor.index;
2827
+ build() {
2829
2828
  if (!this._hasOrganized) {
2830
2829
  this._hasOrganized = true;
2831
2830
  this._organizePatterns(this._originalPatterns);
2832
2831
  }
2832
+ }
2833
+ parse(cursor) {
2834
+ this._firstIndex = cursor.index;
2835
+ this.build();
2833
2836
  // If there are not any atom nodes then nothing can be found.
2834
2837
  if (this._atomPatterns.length < 1) {
2835
2838
  cursor.moveTo(this._firstIndex);