clarity-pattern-parser 11.1.2 → 11.1.4

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.
@@ -3133,7 +3133,7 @@
3133
3133
  }
3134
3134
  clone(name = this._name) {
3135
3135
  const clone = new Expression(name, this._originalPatterns);
3136
- clone._originalName = this.name;
3136
+ clone._originalName = this._originalName;
3137
3137
  clone._id = this._id;
3138
3138
  return clone;
3139
3139
  }
@@ -3236,7 +3236,7 @@
3236
3236
  return `Error at line 1, column 1. Hint: ${suggestions}`;
3237
3237
  }
3238
3238
  const lastPattern = furthestMatch.pattern;
3239
- const suggestions = cleanSuggestions(lastPattern.getTokens());
3239
+ const suggestions = cleanSuggestions(lastPattern.getNextTokens());
3240
3240
  const strUpToError = cursor.getChars(0, endIndex);
3241
3241
  const lines = strUpToError.split("\n");
3242
3242
  const lastLine = lines[lines.length - 1];