提交 46dd4706 编写于 作者: A Alex Dima

Minor refactoring

上级 2e53042c
......@@ -132,14 +132,10 @@ export class TokensStore {
this._len += insertCount;
}
private _setTokens(lineIndex: number, tokens: ArrayBuffer | null): void {
this._ensureLine(lineIndex);
this._lineTokens[lineIndex] = tokens;
}
public setTokens(topLevelLanguageId: LanguageId, lineIndex: number, lineTextLength: number, _tokens: Uint32Array): void {
const tokens = TokensStore._massageTokens(topLevelLanguageId, lineTextLength, _tokens);
this._setTokens(lineIndex, tokens);
this._ensureLine(lineIndex);
this._lineTokens[lineIndex] = tokens;
}
//#region Editing
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册