Home
last modified time | relevance | path

Searched refs:ScriptVersionCache (Results 1 – 3 of 3) sorted by relevance

/third_party/typescript/src/server/
DscriptVersionCache.ts251 export class ScriptVersionCache { class
253 …donly versions: LineIndexSnapshot[] = new Array<LineIndexSnapshot>(ScriptVersionCache.maxVersions);
266 return version % ScriptVersionCache.maxVersions;
270 return this.currentVersion % ScriptVersionCache.maxVersions;
276 if (this.changes.length > ScriptVersionCache.changeNumberThreshold ||
277 deleteLen > ScriptVersionCache.changeLengthThreshold ||
278 insertedText && insertedText.length > ScriptVersionCache.changeLengthThreshold) {
298 if ((this.currentVersion - this.minVersion) >= ScriptVersionCache.maxVersions) {
299 this.minVersion = (this.currentVersion - ScriptVersionCache.maxVersions) + 1;
354 const svc = new ScriptVersionCache();
[all …]
DscriptInfo.ts15 private svc: ScriptVersionCache | undefined;
225 private switchToScriptVersionCache(): ScriptVersionCache {
227 this.svc = ScriptVersionCache.fromString(this.getOrLoadText());
233 private useScriptVersionCacheIfValidOrOpen(): ScriptVersionCache | undefined {
/third_party/typescript/src/testRunner/unittests/tsserver/
DversionCache.ts288 const svc = server.ScriptVersionCache.fromString(testContent);