clarity-pattern-parser 11.2.1 → 11.2.2

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.esm.js CHANGED
@@ -3206,15 +3206,16 @@ class TakeUntil {
3206
3206
  let foundMatch = false;
3207
3207
  this._startedOnIndex = cursor.index;
3208
3208
  let terminatingResult = this._terminatingPattern.parse(cursor);
3209
+ cursor.resolveError();
3209
3210
  if (terminatingResult == null) {
3210
3211
  foundMatch = true;
3211
3212
  cursor.moveTo(cursorIndex);
3212
3213
  cursorIndex += 1;
3213
3214
  cursor.hasNext() && cursor.next();
3214
- cursor.resolveError();
3215
3215
  }
3216
3216
  while (true) {
3217
3217
  terminatingResult = this._terminatingPattern.parse(cursor);
3218
+ cursor.resolveError();
3218
3219
  if (terminatingResult == null) {
3219
3220
  cursor.moveTo(cursorIndex);
3220
3221
  cursorIndex += 1;
@@ -3224,7 +3225,6 @@ class TakeUntil {
3224
3225
  else {
3225
3226
  break;
3226
3227
  }
3227
- cursor.resolveError();
3228
3228
  }
3229
3229
  else {
3230
3230
  break;
@@ -3236,7 +3236,6 @@ class TakeUntil {
3236
3236
  return Node.createValueNode(this._type, this._name, value);
3237
3237
  }
3238
3238
  else {
3239
- cursor.resolveError();
3240
3239
  cursor.moveTo(this.startedOnIndex);
3241
3240
  cursor.recordErrorAt(this._startedOnIndex, this._startedOnIndex, this);
3242
3241
  return null;