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.js CHANGED
@@ -3210,15 +3210,16 @@ class TakeUntil {
3210
3210
  let foundMatch = false;
3211
3211
  this._startedOnIndex = cursor.index;
3212
3212
  let terminatingResult = this._terminatingPattern.parse(cursor);
3213
+ cursor.resolveError();
3213
3214
  if (terminatingResult == null) {
3214
3215
  foundMatch = true;
3215
3216
  cursor.moveTo(cursorIndex);
3216
3217
  cursorIndex += 1;
3217
3218
  cursor.hasNext() && cursor.next();
3218
- cursor.resolveError();
3219
3219
  }
3220
3220
  while (true) {
3221
3221
  terminatingResult = this._terminatingPattern.parse(cursor);
3222
+ cursor.resolveError();
3222
3223
  if (terminatingResult == null) {
3223
3224
  cursor.moveTo(cursorIndex);
3224
3225
  cursorIndex += 1;
@@ -3228,7 +3229,6 @@ class TakeUntil {
3228
3229
  else {
3229
3230
  break;
3230
3231
  }
3231
- cursor.resolveError();
3232
3232
  }
3233
3233
  else {
3234
3234
  break;
@@ -3240,7 +3240,6 @@ class TakeUntil {
3240
3240
  return Node.createValueNode(this._type, this._name, value);
3241
3241
  }
3242
3242
  else {
3243
- cursor.resolveError();
3244
3243
  cursor.moveTo(this.startedOnIndex);
3245
3244
  cursor.recordErrorAt(this._startedOnIndex, this._startedOnIndex, this);
3246
3245
  return null;