/third_party/typescript/src/testRunner/unittests/tsbuild/ |
D | outFile.ts | 103 … modifyFs: fs => replaceText(fs, relSources[Project.first][Source.ts][Part.one], "Hello", "Hola"), 147 … modifyFs: fs => replaceText(fs, sources[Project.third][Source.config], `"composite": true,`, ""), 155 …modifyFs: fs => replaceText(fs, sources[Project.third][Source.config], `"composite": true,`, `"inc… 164 …modifyFs: fs => replaceText(fs, sources[Project.third][Source.config], `"composite": true,`, `"com… 201 … modifyFs: fs => replaceText(fs, sources[Project.third][Source.config], `"composite": true,`, ""), 230 replaceText(fs, sources[Project.third][Source.config], `"composite": true,`, ""); 453 replaceText(fs, file, `"removeComments": true`, `"removeComments": false`); 463 …replaceText(fs, sources[Project.third][Source.config], `"declaration": true,`, `"declaration": tru… 473 …replaceText(fs, sources[Project.first][Source.ts][Part.one], "interface", `${internal} interface`); 506 …modifyAgainFs: fs => replaceText(fs, sources[Project.first][Source.ts][Part.one], `/*@internal*/ i… [all …]
|
D | emitDeclarationOnly.ts | 18 (fs => replaceText(fs, "/src/tsconfig.json", `"declarationMap": true,`, "")) : 22 modifyFs: fs => replaceText(fs, "/src/src/a.ts", "b: B;", "b: B; foo: any;"), 36 …replaceText(fs, "/src/src/a.ts", `import { B } from "./b";`, `export class B { prop = "hello"; }`); 41 … modifyFs: fs => replaceText(fs, "/src/src/a.ts", "export interface A {", `class C { } 47 modifyFs: fs => replaceText(fs, "/src/src/a.ts", "b: B;", "b: B; foo: any;"),
|
D | sample.ts | 54 … modifyFs: fs => replaceText(fs, "/src/core/tsconfig.json", `"composite": true,`, ""), 138 … modifyFs: fs => replaceText(fs, "/src/core/index.ts", "HELLO WORLD", "WELCOME PLANET"), 155 …modifyFs: fs => replaceText(fs, "/src/tests/tsconfig.json", `"composite": true`, `"composite": tru… 211 …replaceText(fs, "/src/tests/tsconfig.json", `"references": [`, `"extends": "./tsconfig.base.json",… 302 … modifyFs: fs => replaceText(fs, "/src/logic/index.ts", "c.multiply(10, 15)", `c.muitply()`) 411 …modifyFs: fs => replaceText(fs, "/src/logic/tsconfig.json", `"declaration": true,`, `"declaration"… 422 …modifyFs: fs => replaceText(fs, "/src/logic/tsconfig.json", `"composite": true,`, `"composite": tr… 442 …modifyFs: fs => replaceText(fs, "/src/core/tsconfig.json", `"incremental": true,`, `"incremental":… 468 modifyFs: fs => replaceText(fs, "/src/core/tsconfig.json", "esnext", "es5"), 485 …modifyFs: fs => replaceText(fs, "/src/core/tsconfig.json", `"module": "commonjs"`, `"module": "amd… [all …]
|
D | amdModulesWithOut.ts | 128 … replaceText(fs, sources[Project.app][Source.config], `"composite": true,`, `"composite": true, 130 … replaceText(fs, sources[Project.lib][Source.ts][0], "const", `${internal} const`); 163 …modifyAgainFs: fs => replaceText(fs, sources[Project.lib][Source.ts][1], `export const`, `/*@inter… 170 …replaceText(fs, sources[Project.lib][Source.config], `"outFile": "module.js"`, `"outFile": "../mod… 172 replaceText(fs, sources[Project.app][Source.ts][0], "file1", "lib/file1");
|
D | inferredTypeFromTransitiveModule.ts | 53 modifyFs: fs => replaceText(fs, "/src/lazyIndex.ts", `bar("hello")`, "bar()") 60 …replaceText(fs, "/src/tsconfig.json", `"incremental": true`, `"incremental": true, "isolatedModule… 64 replaceText(fs, "/src/bar.ts", "param: string", "");
|
D | resolveJsonModule.ts | 59 …modifyFs: fs => replaceText(fs, "src/tsconfig_withFiles.json", `"composite": true,`, `"composite":… 68 modifyFs: fs => replaceText(fs, "src/tsconfig_withFiles.json", `"outDir": "dist",`, ""),
|
D | lateBoundSymbol.ts | 10 modifyFs: fs => replaceText(fs, "/src/src/main.ts", "const x = 10;", ""),
|
D | demo.ts | 24 modifyFs: fs => replaceText(
|
D | helpers.ts | 21 … export function replaceText(fs: vfs.FileSystem, path: string, oldText: string, newText: string) { function 574 replaceText(fs, path, `"strict": false`, `"strict": true`); 602 …replaceText(fs, `src/${project}/${file}.ts`, restContent(project, file), nonrestContent(project, f… 610 …replaceText(fs, `src/${project}/${file}.ts`, nonrestContent(project, file), restContent(project, f… 621 replaceText(fs, `src/${project}/tsconfig.json`, `"strict": false,`, `"strict": false,
|
D | configFileErrors.ts | 33 modifyFs: fs => replaceText(fs, "/src/tsconfig.json", ",", `,
|
D | referencesWithRootDirInParent.ts | 24 modifyFs: fs => replaceText(fs, "/src/tsconfig.base.json", `"rootDir": "./src/",`, ""),
|
/third_party/typescript/src/testRunner/unittests/tsc/ |
D | incremental.ts | 154 … modifyFs: fs => replaceText(fs, "/src/project/src/class.ts", "prop", "prop1"), 159 … modifyFs: fs => replaceText(fs, "/src/project/src/class.ts", "prop1", "prop"), 168 … modifyFs: fs => replaceText(fs, "/src/project/src/class.ts", "prop", "prop1"), 178 … modifyFs: fs => replaceText(fs, "/src/project/src/class.ts", "prop1", "prop"), 198 … modifyFs: fs => replaceText(fs, "/src/project/src/class.ts", "prop", "prop1"), 203 … modifyFs: fs => replaceText(fs, "/src/project/src/class.ts", "prop1", "prop"),
|
/third_party/typescript_eslint/packages/eslint-plugin/src/rules/ |
D | prefer-enum-initializers.ts | 46 return fixer.replaceText(member, `${name} = ${index}`); 53 return fixer.replaceText(member, `${name} = ${index + 1}`); 60 return fixer.replaceText(member, `${name} = '${name}'`);
|
D | no-confusing-void-expression.ts | 104 return fixer.replaceText(node, newNodeText); 142 return fixer.replaceText(arrowBody, newArrowBodyText); 174 return fixer.replaceText(returnStmt, newReturnStmtText); 196 return fixer.replaceText(returnStmt, newReturnStmtText);
|
D | no-explicit-any.ts | 189 return fixer.replaceText(node, 'unknown'); 195 return fixer.replaceText(node, 'never'); 203 fixer.replaceText(node, 'unknown')) as TSESLint.ReportFixFunction;
|
D | no-array-constructor.ts | 44 return fixer.replaceText(node, '[]'); 49 return fixer.replaceText(
|
D | prefer-ts-expect-error.ts | 62 fixer.replaceText( 68 fixer.replaceText(
|
D | method-signature-style.ts | 164 yield fixer.replaceText( 201 return fixer.replaceText( 227 return fixer.replaceText(
|
D | consistent-indexed-object-style.ts | 57 return fixer.replaceText(node, `{ [key: ${key}]: ${type} }`); 104 return fixer.replaceText(
|
D | consistent-type-definitions.ts | 64 fixes.push(fixer.replaceText(firstToken, 'interface')); 104 fixes.push(fixer.replaceText(firstToken, 'type'));
|
D | class-literal-property-style.ts | 95 return fixer.replaceText(node, text); 127 return fixer.replaceText(node, text);
|
D | prefer-namespace-keyword.ts | 46 return fixer.replaceText(moduleType, 'namespace');
|
D | no-implicit-any-catch.ts | 83 return fixer.replaceText(
|
/third_party/typescript_eslint/packages/eslint-plugin-internal/src/rules/ |
D | no-typescript-default-import.ts | 50 return fixer.replaceText(node, '* as ts'); 70 return fixer.replaceText(
|
D | plugin-test-formatting.ts | 231 return fixer.replaceText( 242 return fixer.replaceText(literal, `${quote}${output}${quote}`); 399 return fixer.replaceText(
|