/third_party/typescript/src/testRunner/unittests/tsserver/ |
D | rename.ts | 4 const aTs: File = { path: "/a.ts", content: "export const a = 0;" }; constant 7 const session = createSession(createServerHost([aTs, bTs])); 26 fileToRename: aTs.path, 27 displayName: aTs.path, 28 fullDisplayName: aTs.path, 52 fileToRename: aTs.path, 53 displayName: aTs.path, 54 fullDisplayName: aTs.path, 73 const aTs: File = { path: "/a.ts", content: "const x = 0; const o = { x };" }; constant 74 const host = createServerHost([aTs]); [all …]
|
D | declarationFileMaps.ts | 44 const aTs: File = { constant 123 …const host = createServerHost([aTs, aTsconfig, aDtsMap, aDts, bTsconfig, bTs, bDtsMap, bDts, ...(a… 126 checkDeclarationFiles(aTs, session, [aDtsMap, aDts]); 165 …iles(session.getProjectService().configuredProjects.get(aTsconfig.path)!, [aTs.path, aTsconfig.pat… 190 …ProjectService().configuredProjects.get(userTsconfig.path)!, [userTs.path, aTs.path, userTsconfig.… 198 file: aTs, 213 file: aTs, 229 file: aTs, 240 openFilesForSession([aTs], session); 247 closeFilesForSession([aTs], session); [all …]
|
D | metadataInResponse.ts | 20 …const aTs: File = { path: "/a.ts", content: `class c { prop = "hello"; foo() { return this.prop; }… constant 53 file: aTs.path, 55 offset: aTs.content.indexOf("this.") + 1 + "this.".length 135 const host = createHostWithPlugin([aTs, tsconfig]); 137 openFilesForSession([aTs], session); 145 const host = createHostWithPlugin([aTs, tsconfig]); 147 openFilesForSession([aTs], session); 157 start: { line: 1, offset: aTs.content.indexOf("prop;") + 1 }, 158 end: { line: 1, offset: aTs.content.indexOf("prop;") + 1 + "prop".length } 165 …const aTs: File = { path: "/a.ts", content: `class c { prop = "hello"; foo() { const x = 0; } }` }; constant [all …]
|
D | plugins.ts | 34 …const aTs: File = { path: "/a.ts", content: `class c { prop = "hello"; foo() { return this.prop; }… constant 46 const { host, pluginsLoaded } = createHostWithPlugin([aTs, tsconfig, libFile]); 48 service.openClientFile(aTs.path); 55 …const aTs: File = { path: "/a.ts", content: `class c { prop = "hello"; foo() { return this.prop; }… constant 60 const { host, pluginsLoaded } = createHostWithPlugin([aTs, tsconfig, libFile]); 62 service.openClientFile(aTs.path); 69 …const aTs: File = { path: "/a.ts", content: `class c { prop = "hello"; foo() { return this.prop; }… constant 81 …const { host, pluginsLoaded, protocolHandlerRequests } = createHostWithPlugin([aTs, tsconfig, libF… 85 service.openClientFile(aTs.path); 105 … const aTs: File = { path: `${tscWatch.projectRoot}/a.ts`, content: `export const x = 10;` }; constant [all …]
|
D | refactors.ts | 58 const aTs = { constant 67 const session = createSession(createServerHost([aTs, tsconfig])); 68 openFilesForSession([aTs], session); 121 const aTs: File = { path: "/Foo/a.ts", content: "const x = 0;" }; constant 123 const session = createSession(createServerHost([aTs, tsconfig])); 124 openFilesForSession([aTs], session); 127 file: aTs.path, 131 endOffset: aTs.content.length, 138 fileName: aTs.path, 139 …textChanges: [{ start: { line: 1, offset: 1 }, end: { line: 1, offset: aTs.content.length + 1 }, n…
|
D | getFileReferences.ts | 8 const aTs: File = { constant 30 const host = createServerHost([aTs, bTs, cTs, dTs, tsconfig]); 32 openFilesForSession([aTs, bTs, cTs, dTs], session); 42 { file: aTs.path }, 52 symbolName: `"${aTs.path}"`, 65 { file: aTs.path }, 75 symbolName: `"${aTs.path}"`,
|
D | getApplicableRefactors.ts | 4 const aTs: File = { path: "/a.ts", content: "" }; constant 5 const session = createSession(createServerHost([aTs])); 6 openFilesForSession([aTs], session); 8 … session, protocol.CommandTypes.GetApplicableRefactors, { file: aTs.path, line: 1, offset: 1 });
|
D | moduleSpecifierCache.ts | 6 const aTs: File = { constant 42 …assert.isFalse(moduleSpecifierCache.get(bTs.path as Path, aTs.path as Path, {}, {})?.isBlockedByPa… 73 host.writeFile("/src/a2.ts", aTs.content); 75 …assert.isFalse(moduleSpecifierCache.get(bTs.path as Path, aTs.path as Path, {}, {})?.isBlockedByPa… 121 … return moduleSpecifierCache.get(bTs.path as Path, aTs.path as Path, preferences, {}); 127 …const host = createServerHost([aTs, bTs, cTs, bSymlink, ambientDeclaration, tsconfig, packageJson,… 129 openFilesForSession([aTs, bTs, cTs], session);
|
D | auxiliaryProject.ts | 2 const aTs: File = { constant 16 const host = createServerHost([aTs, bDts, bJs]); 19 openFilesForSession([aTs], session); 26 const auxProject = inferredProject.getNoDtsResolutionProject([aTs.path]);
|
D | exportMapCache.ts | 6 const aTs: File = { constant 47 host.writeFile("/src/a2.ts", aTs.content); 55 projectService.closeClientFile(aTs.path); 56 host.deleteFile(aTs.path); 125 …const host = createServerHost([aTs, bTs, ambientDeclaration, tsconfig, packageJson, mobxPackageJso… 127 openFilesForSession([aTs, bTs], session);
|
D | getEditsForFileRename.ts | 81 const aTs: File = { path: "/a.ts", content: 'import {} from "./b";' }; constant 85 const host = createServerHost([aTs, cTs, tsconfig]); 87 openFilesForSession([aTs, cTs], session); 100 … textChanges: [{ ...protocolTextSpanFromSubstring(aTs.content, "./b"), newText: "./c" }],
|
D | completions.ts | 4 const aTs: File = { constant 17 const session = createSession(createServerHost([aTs, bTs, tsconfig])); 18 openFilesForSession([aTs, bTs], session); 162 const aTs: File = { constant 184 const session = createSession(createServerHost([aTs, bTs, tsconfig])); 185 openFilesForSession([aTs, bTs], session);
|
D | projectsWithReferences.ts | 59 const aTs: File = { constant 80 … const host = createServerHost([libFile, aConfig, bConfig, cConfig, aTs, bTs, cTs, refsTs]); 83 return { host, service, aConfig, bConfig, cConfig, aTs, bTs, cTs, refsTs }; 175 const aTs: File = { constant 196 … const host = createServerHost([libFile, aConfig, bConfig, cConfig, aTs, bTs, cTs, refsTs]); 199 return { host, service, aConfig, bConfig, cConfig, aTs, bTs, cTs, refsTs };
|
D | dynamicFiles.ts | 28 const aTs: File = { path: "/proj/a.ts", content: "" }; constant 30 …const session = createSession(createServerHost([aTs, tsconfig]), { useInferredProjectPerProjectRoo… 32 openFilesForSession([aTs], session);
|
D | projectErrors.ts | 739 const aTs: File = { path: "/a.ts", content: "label: while (1) {}" }; constant 743 const host = createServerHost([aTs, tsconfig]); 745 openFilesForSession([aTs], session); 750 …cResponse>(session, protocol.CommandTypes.SemanticDiagnosticsSync, { file: aTs.path }) as protocol…
|
D | projectReferences.ts | 244 const aTs: File = { constant 279 content: aTs.content 281 const files = [libFile, aTs, a2Ts, configA, bDts, bTs, configB, cTs, configC]; constant 284 service.openClientFile(aTs.path); 290 … checkProjectActualFiles(projectA, [aTs.path, a2Ts.path, bDts.path, libFile.path, configA.path]);
|
/third_party/typescript/src/testRunner/unittests/tsserver/events/ |
D | projectLoading.ts | 3 const aTs: File = { constant 13 const files = [libFile, aTs, configA]; constant 61 verifyEventWithOpenTs(aTs, configA.path, 1); 67 verifyEventWithOpenTs(aTs, configA.path, 1); 149 … `Creating project for original file: ${aTs.path} for location: ${aDTs.path}` : 150 `Creating project for original file: ${aTs.path}` 163 rootFiles: toExternalFiles([aTs.path, configA.path]), 185 openFilesForSession([aTs], session);
|
/third_party/typescript/tests/cases/fourslash/ |
D | navigateToIIFE.ts | 18 const aTs: ReadonlyArray<FourSlashInterface.ExpectedNavigateToItem> = [{ name: "onResume", kind: "f… constant 23 { pattern: "onResume", expected: [...aTs, ...bTs] }, 24 { pattern: "onResume", fileName: "/a.ts", expected: aTs },
|
D | navigateToSingleFileResults.ts | 17 const aTs: ReadonlyArray<FourSlashInterface.ExpectedNavigateToItem> = [ constant 24 { pattern: "hello", expected: [...aTs, ...bTs] }, 25 { pattern: "hello", fileName: "/a.ts", expected: aTs },
|
/third_party/typescript/src/testRunner/unittests/tscWatch/ |
D | incremental.ts | 231 const aTs: File = { constant 262 return [libFile, aTs, bTs, cTs, indexTs, config];
|
D | programUpdates.ts | 226 const aTs: File = { constant 236 return createWatchedSystem([libFile, aTs, tsconfig]); 261 const aTs: File = { constant 279 return createWatchedSystem([libFile, aTs, bTs, tsconfig]);
|
/third_party/rust/crates/bindgen/bindgen-tests/tests/ |
D | stylo.hpp | 135931 TraverseGCThing(TraverseSelect aTs, JS::GCCellPtr aThing,
|