Home
last modified time | relevance | path

Searched refs:replaceText (Results 1 – 25 of 47) sorted by relevance

12

/third_party/typescript/src/testRunner/unittests/tsbuild/
DoutFile.ts103 … 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`);
463replaceText(fs, sources[Project.third][Source.config], `"declaration": true,`, `"declaration": tru…
473replaceText(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 …]
DemitDeclarationOnly.ts18 (fs => replaceText(fs, "/src/tsconfig.json", `"declarationMap": true,`, "")) :
22 modifyFs: fs => replaceText(fs, "/src/src/a.ts", "b: B;", "b: B; foo: any;"),
36replaceText(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;"),
Dsample.ts54 … 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…
211replaceText(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 …]
DamdModulesWithOut.ts128replaceText(fs, sources[Project.app][Source.config], `"composite": true,`, `"composite": true,
130replaceText(fs, sources[Project.lib][Source.ts][0], "const", `${internal} const`);
163 …modifyAgainFs: fs => replaceText(fs, sources[Project.lib][Source.ts][1], `export const`, `/*@inter…
170replaceText(fs, sources[Project.lib][Source.config], `"outFile": "module.js"`, `"outFile": "../mod…
172 replaceText(fs, sources[Project.app][Source.ts][0], "file1", "lib/file1");
DinferredTypeFromTransitiveModule.ts53 modifyFs: fs => replaceText(fs, "/src/lazyIndex.ts", `bar("hello")`, "bar()")
60replaceText(fs, "/src/tsconfig.json", `"incremental": true`, `"incremental": true, "isolatedModule…
64 replaceText(fs, "/src/bar.ts", "param: string", "");
DresolveJsonModule.ts59 …modifyFs: fs => replaceText(fs, "src/tsconfig_withFiles.json", `"composite": true,`, `"composite":…
68 modifyFs: fs => replaceText(fs, "src/tsconfig_withFiles.json", `"outDir": "dist",`, ""),
DlateBoundSymbol.ts10 modifyFs: fs => replaceText(fs, "/src/src/main.ts", "const x = 10;", ""),
Ddemo.ts24 modifyFs: fs => replaceText(
Dhelpers.ts21 … export function replaceText(fs: vfs.FileSystem, path: string, oldText: string, newText: string) { function
574 replaceText(fs, path, `"strict": false`, `"strict": true`);
602replaceText(fs, `src/${project}/${file}.ts`, restContent(project, file), nonrestContent(project, f…
610replaceText(fs, `src/${project}/${file}.ts`, nonrestContent(project, file), restContent(project, f…
621 replaceText(fs, `src/${project}/tsconfig.json`, `"strict": false,`, `"strict": false,
DconfigFileErrors.ts33 modifyFs: fs => replaceText(fs, "/src/tsconfig.json", ",", `,
DreferencesWithRootDirInParent.ts24 modifyFs: fs => replaceText(fs, "/src/tsconfig.base.json", `"rootDir": "./src/",`, ""),
/third_party/typescript/src/testRunner/unittests/tsc/
Dincremental.ts154 … 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/
Dprefer-enum-initializers.ts46 return fixer.replaceText(member, `${name} = ${index}`);
53 return fixer.replaceText(member, `${name} = ${index + 1}`);
60 return fixer.replaceText(member, `${name} = '${name}'`);
Dno-confusing-void-expression.ts104 return fixer.replaceText(node, newNodeText);
142 return fixer.replaceText(arrowBody, newArrowBodyText);
174 return fixer.replaceText(returnStmt, newReturnStmtText);
196 return fixer.replaceText(returnStmt, newReturnStmtText);
Dno-explicit-any.ts189 return fixer.replaceText(node, 'unknown');
195 return fixer.replaceText(node, 'never');
203 fixer.replaceText(node, 'unknown')) as TSESLint.ReportFixFunction;
Dno-array-constructor.ts44 return fixer.replaceText(node, '[]');
49 return fixer.replaceText(
Dprefer-ts-expect-error.ts62 fixer.replaceText(
68 fixer.replaceText(
Dmethod-signature-style.ts164 yield fixer.replaceText(
201 return fixer.replaceText(
227 return fixer.replaceText(
Dconsistent-indexed-object-style.ts57 return fixer.replaceText(node, `{ [key: ${key}]: ${type} }`);
104 return fixer.replaceText(
Dconsistent-type-definitions.ts64 fixes.push(fixer.replaceText(firstToken, 'interface'));
104 fixes.push(fixer.replaceText(firstToken, 'type'));
Dclass-literal-property-style.ts95 return fixer.replaceText(node, text);
127 return fixer.replaceText(node, text);
Dprefer-namespace-keyword.ts46 return fixer.replaceText(moduleType, 'namespace');
Dno-implicit-any-catch.ts83 return fixer.replaceText(
/third_party/typescript_eslint/packages/eslint-plugin-internal/src/rules/
Dno-typescript-default-import.ts50 return fixer.replaceText(node, '* as ts');
70 return fixer.replaceText(
Dplugin-test-formatting.ts231 return fixer.replaceText(
242 return fixer.replaceText(literal, `${quote}${output}${quote}`);
399 return fixer.replaceText(

12