constructor(lineCount) {
        this.lineCount = lineCount;
        this._tokenizationStateStore = new TokenizationStateStore();
        this._invalidEndStatesLineNumbers = new RangePriorityQueueImpl();
        this._invalidEndStatesLineNumbers.addRange(new OffsetRange(1, lineCount + 1));
    }
**Invariant:**
If the text model is retokenized from line 1 to {@link getFirstInvalidEndStateLineNumber}() - 1,
then the recomputed end state for line l will be equal to {@link getEndState}(l).