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