Home
last modified time | relevance | path

Searched refs:writeFile (Results 1 – 25 of 213) sorted by relevance

123456789

/third_party/typescript/src/testRunner/unittests/tsserver/events/
DprojectUpdatedInBackground.ts54 host.writeFile(commonFile2.path, commonFile2.content);
63 host.writeFile(commonFile3.path, commonFile3.content);
97 host.writeFile(f2.path, f2.content);
107 host.writeFile(f2.path, "export let x = 11");
242 … host.writeFile(moduleFile1.path, `export var T: number;export function Foo() { };`);
246 …host.writeFile(moduleFile1.path, `export var T: number;export function Foo() { console.log('hi'); …
258 … host.writeFile(moduleFile1.path, `export var T: number;export function Foo() { };`);
266 …host.writeFile(moduleFile1.path, `export var T: number;export var T2: string;export function Foo()…
274 … host.writeFile(moduleFile1.path, `export var T: number;export function Foo() { };`);
282 … host.writeFile(moduleFile1.path, `export var T: number;export function Foo() { };`);
[all …]
/third_party/node/test/parallel/
Dtest-fs-promises-file-handle-writeFile.js9 const { open, writeFile } = fs.promises;
24 await fileHandle.writeFile(buffer);
41 await assert.rejects(writeFile(fileHandle, buffer, { signal }), {
88 await fileHandle.writeFile(stream);
104 fileHandle.writeFile(stream, { signal }),
115 await fileHandle.writeFile(iterable);
129 fileHandle.writeFile(iterableWith(value)),
142 await fileHandle.writeFile(stream2, 'latin1');
154 await fileHandle.writeFile(bufferIterable);
165 await fileHandle.writeFile(asyncIterable);
[all …]
Dtest-fs-promises-writefile.js61 await fsPromises.writeFile(dest, buffer);
67 await fsPromises.writeFile(dest, stream);
78 fsPromises.writeFile(otherDest, stream, { signal }),
84 await fsPromises.writeFile(dest, iterable);
92 assert.rejects(fsPromises.writeFile(dest, iterableWith(value)), {
100 await fsPromises.writeFile(dest, stream2, 'latin1');
107 await fsPromises.writeFile(dest, bufferIterable);
113 await fsPromises.writeFile(dest, asyncIterable);
119 await fsPromises.writeFile(dest, veryLargeBuffer);
127 assert.rejects(fsPromises.writeFile(dest, value), {
[all …]
Dtest-fs-write-file.js41 fs.writeFile(filename, s, common.mustSucceed(() => {
51 fs.writeFile(filename2, buf, common.mustSucceed(() => {
61 fs.writeFile(fd, s, common.mustSucceed(() => {
78 fs.writeFile(filename3, s, { signal }, common.mustCall((err) => {
92 fs.writeFile(filename4, s, { signal }, common.mustCall((err) => {
103 fs.writeFile(filename, s, { flag: 'r' }, common.expectsError(/EBADF/));
Dtest-fs-promises-file-handle-op-errors.js13 writeFile,
27 await writeFile(filePath, 'content');
57 await checkOperationError((filePath) => writeFile(filePath, '123'));
Dtest-fs-promises-file-handle-close-errors.js13 writeFile,
27 await writeFile(filePath, 'content');
63 await checkCloseError((filePath) => writeFile(filePath, '123'));
/third_party/typescript/src/testRunner/unittests/tscWatch/
DemitAndErrorUpdates.ts108 … change: sys => sys.writeFile(cFile.path, cFile.content.replace("d", "d2")),
113 … change: sys => sys.writeFile(cFile.path, cFile.content.replace("d2", "d")),
118 … change: sys => sys.writeFile(cFile.path, cFile.content.replace("d", "d2")),
216 change: sys => sys.writeFile(aFile.path, aFile.content.replace("x2", "x")),
221 … change: sys => sys.writeFile(aFile.path, aFile.content.replace("x: number", "x2: number")),
226 change: sys => sys.writeFile(aFile.path, aFile.content.replace("x2", "x")),
287 …change: sys => sys.writeFile(lib1ToolsInterface.path, lib1ToolsInterface.content.replace("title", …
292 …change: sys => sys.writeFile(lib1ToolsInterface.path, lib1ToolsInterface.content.replace("title2",…
297 …change: sys => sys.writeFile(lib1ToolsInterface.path, lib1ToolsInterface.content.replace("title", …
340 …change: sys => sys.writeFile(`${TestFSWithWatch.tsbuildProjectsLocation}/noEmitOnError/src/main.ts…
[all …]
DprogramUpdates.ts91 change: sys => sys.writeFile(commonFile2.path, commonFile2.content),
137 change: sys => sys.writeFile(commonFile2.path, commonFile2.content),
158 change: sys => sys.writeFile(commonFile2.path, commonFile2.content),
186 change: sys => sys.writeFile(configFilePath, `{
352 change: sys => sys.writeFile(configFile.path, `{
509 … sys.writeFile(configFilePath, JSON.stringify({ compilerOptions: { module: "none" } }));
585 change: sys => sys.writeFile("/a/b/f2.ts", "let y = 1"),
613 …change: sys => sys.writeFile(configFilePath, JSON.stringify({ compilerOptions: {}, files: ["f1.ts"…
641 … change: sys => sys.writeFile(`${projectRoot}/new-file.ts`, "export const z = 1;"),
670 … change: sys => sys.writeFile(`${projectRoot}/Project/file2.ts`, "export const y = 10;"),
[all …]
Demit.ts18 change: sys => sys.writeFile("/a/a.ts", "let x = 11"),
23 change: sys => sys.writeFile("/a/a.ts", "let xy = 11"),
142 sys.writeFile(moduleFile1Path, `export var T: number;export function Foo() { };`);
156 …change: sys => sys.writeFile(moduleFile1Path, `export var T: number;export function Foo() { consol…
167 change: sys => sys.writeFile(file1Consumer1Path, `export let y = Foo();`),
173 …change: sys => sys.writeFile(file1Consumer1Path, `import {Foo} from "./moduleFile1";let y = Foo();…
178 change: sys => sys.writeFile(moduleFile1Path, `export let y = Foo();`),
186 … sys.writeFile(file1Consumer1Path, `import {Foo} from "./moduleFile1";let y = Foo();`);
214 … sys.writeFile("/a/b/file1Consumer3.ts", `import {Foo} from "./moduleFile1"; let y = Foo();`);
279 … sys.writeFile(moduleFile1Path, `export var T2: number;export function Foo() { };`);
[all …]
DmoduleResolution.ts161 change: sys => sys.writeFile(`${projectRoot}/package.json`, JSON.stringify({
171 …change: sys => sys.writeFile(`${projectRoot}/package.json`, JSON.stringify({ name: "app", version:…
187 change: sys => sys.writeFile(`${projectRoot}/package.json`, JSON.stringify({
216 …change: sys => sys.writeFile(`${projectRoot}/package.json`, JSON.stringify({ name: "app", version:…
224 change: sys => sys.writeFile(`${projectRoot}/package.json`, JSON.stringify({
242 …change: sys => sys.writeFile(`${projectRoot}/package.json`, JSON.stringify({ name: "app", version:…
Dincremental.ts78 modifyFs: host => host.writeFile(file2.path, modifiedFile2Content),
91 modifyFs: host => host.writeFile(file1.path, file1.content.replace("x", "z")),
120 … modifyFs: host => host.writeFile(file2.path, file2.content.replace("y", "z").replace("20", "10")),
132 … modifyFs: host => host.writeFile(file1.path, file1.content.replace("x = 10", "z = 10")),
265 modifyFs: host => host.writeFile(`${project}/a.ts`, `import { B } from "./b";
310 …modifyFs: host => host.writeFile(configFile.path, JSON.stringify({ compilerOptions: { ...jsxImport…
325 … host.writeFile(`${project}/node_modules/react/jsx-runtime/index.d.ts`, jsxLibraryContent);
326 …host.writeFile(`${project}/node_modules/react/package.json`, JSON.stringify({ name: "react", versi…
373 …host.writeFile(`${project}/src/types/classnames.d.ts`, `export {}; declare module "classnames" { i…
/third_party/node/test/es-module/
Dtest-esm-extension-lookup-deprecation.mjs5 import { mkdir, writeFile } from 'node:fs/promises';
17 await writeFile(path.join(pkgPath, './index.js'), 'console.log("Hello World!")');
18 await writeFile(path.join(pkgPath, './package.json'), JSON.stringify({
35 await writeFile(path.join(pkgPath, './index.js'), 'console.log("Hello World!")');
36 await writeFile(path.join(pkgPath, './package.json'), JSON.stringify({
54 await writeFile(path.join(pkgPath, './index.js'), 'console.log("Hello World!")');
55 await writeFile(path.join(pkgPath, './package.json'), JSON.stringify({
71 await writeFile(path.join(pkgPath, './index.js'), 'console.log("Hello World!")');
72 await writeFile(path.join(pkgPath, './package.json'), JSON.stringify({
89 await writeFile(path.join(pkgPath, './index.js'), 'console.log("Hello World!")');
[all …]
/third_party/typescript/src/testRunner/unittests/tsserver/
DprojectsWithReferences.ts26 host.writeFile(logicConfig.path, JSON.stringify({
105 host.writeFile(cConfig.path, JSON.stringify(cTsConfigJson));
109 host.writeFile(cConfig.path, cConfig.content);
123 host.writeFile(bConfig.path, JSON.stringify(bTsConfigJson));
127 host.writeFile(bConfig.path, bConfig.content);
138 host.writeFile(bConfig.path, bConfig.content);
149 host.writeFile(aConfig.path, aConfig.content);
220 host.writeFile(cConfig.path, JSON.stringify(cTsConfigJson));
224 host.writeFile(cConfig.path, cConfig.content);
238 host.writeFile(bConfig.path, JSON.stringify(bTsConfigJson));
[all …]
DresolutionCache.ts61 host.writeFile(t2.path, t2.content);
89 host.writeFile(moduleFile.path, moduleFile.content);
309 host.writeFile(config.path, config.content);
378 host.writeFile(file1.path, file1.content + fileContent);
379 host.writeFile(file2.path, file2.content + fileContent);
394 host.writeFile(file1.path, file1.content + fileContent);
395 host.writeFile(file2.path, file2.content + fileContent);
434 host.writeFile(file1.path, file1.content + fileContent1);
435 host.writeFile(file2.path, file2.content + fileContent2);
436 host.writeFile(file3.path, file3.content + fileContent3);
[all …]
DmoduleResolution.ts46 host.writeFile(packageFile.path, JSON.stringify({
54 host.writeFile(packageFile.path, packageFile.content);
66 host.writeFile(packageFile.path, JSON.stringify({
88 host.writeFile(packageFile.path, JSON.stringify({ name: "app", version: "1.0.0" }));
94 host.writeFile(packageFile.path, packageFile.content);
106 host.writeFile(packageFile.path, JSON.stringify({ name: "app", version: "1.0.0" }));
DpackageJsonInfo.ts32 host.writeFile(packageJson.path, packageJson.content);
41 host.writeFile(packageJson.path, JSON.stringify({
64 host.writeFile("/src/package.json", packageJson.content);
76 host.writeFile(packageJson.path, packageJson.content);
93 host.writeFile(packageJson.path, packageJson.content);
/third_party/typescript/src/testRunner/unittests/tsbuildWatch/
DprogramUpdates.ts35 …change: sys => sys.writeFile(isString(fileName) ? fileName : fileName(), isString(content) ? conte…
126 sys.writeFile(core[1].path, change1);
129 sys.writeFile(core[1].path, `${change1}
209 change: sys => sys.writeFile(logic[0].path, logic[0].content),
317 … change: sys => sys.writeFile(libraryTs.path, libraryTs.content.replace(/message/g, "message2")),
326 change: sys => sys.writeFile(libraryTs.path, libraryTs.content),
347 change: sys => sys.writeFile(logic[1].path, `${logic[1].content}
354 change: sys => sys.writeFile(core[1].path, `${core[1].content}
397 change: sys => sys.writeFile(fileWithError.path, fileWithFixedError.content),
403 …change: sys => sys.writeFile(fileWithoutError.path, fileWithoutError.content.replace(/myClass/g, "…
[all …]
Ddemo.ts34 sys.writeFile(coreFiles[0].path, coreFiles[0].content.replace(
48 change: sys => sys.writeFile(coreFiles[0].path, coreFiles[0].content),
64 sys.writeFile(coreFiles[1].path, `import * as A from '../animals';
71 change: sys => sys.writeFile(coreFiles[1].path, `
DwatchEnvironment.ts30 … change: sys => sys.writeFile(typing.path, `${typing.content}export const typing1 = 10;`),
47 change: sys => sys.writeFile(typing.path, typing.content),
64 … change: sys => sys.writeFile(typing.path, `${typing.content}export const typing1 = 10;`),
103 system.writeFile(configPath, JSON.stringify({
/third_party/typescript/tests/baselines/reference/
DimportingExportingTypes.symbols8 …export function writeFile(path: string, data: any, options: WriteFileOptions, callback: (err: Erro…
9 >writeFile : Symbol(writeFile, Decl(index.d.ts, 1, 38))
20 import { writeFile, WriteFileOptions, WriteFileOptions as OtherName } from "fs";
21 >writeFile : Symbol(writeFile, Decl(index.js, 0, 8))
DimportingExportingTypes.types6 …export function writeFile(path: string, data: any, options: WriteFileOptions, callback: (err: Erro…
7 >writeFile : (path: string, data: any, options: WriteFileOptions, callback: (err: Error) => void) =…
16 import { writeFile, WriteFileOptions, WriteFileOptions as OtherName } from "fs";
17 >writeFile : (path: string, data: any, options: WriteFileOptions, callback: (err: Error) => void) =…
/third_party/typescript/src/loggedIO/
DloggedIO.ts165 …export function oldStyleLogIntoNewStyleLog(log: IoLog, writeFile: typeof Harness.IO.writeFile, bas…
170 writeFile(ts.combinePaths(baseTestName, file.contentsPath), file.contents);
179 writeFile(ts.combinePaths(baseTestName, file.contentsPath), file.contents);
190 writeFile(ts.combinePaths(baseTestName, result.contentsPath), contents);
248 …ewLog = oldStyleLogIntoNewStyleLog(recordLog, (path, str) => underlying.writeFile(path, str), getB…
249 …underlying.writeFile(ts.combinePaths(getBase(), "test.json"), JSON.stringify(newLog, null, 4)); //…
252 …underlying.writeFile(ts.combinePaths(getBase(), "tsconfig.json"), JSON.stringify(syntheticTsconfig…
343 wrapper.writeFile = recordReplay(wrapper.writeFile, underlying)(
344 …(path: string, contents: string) => callAndRecord(underlying.writeFile(path, contents), recordLog!…
/third_party/node/deps/npm/node_modules/libnpmversion/lib/
Dwrite-json.js3 const writeFile = promisify(require('fs').writeFile) constant
15 return writeFile(path, data)
/third_party/node/deps/npm/node_modules/libnpmpack/lib/
Dindex.js9 const writeFile = util.promisify(require('fs').writeFile) constant
48 await writeFile(destination, tarball)
/third_party/node/deps/npm/node_modules/cmd-shim/lib/
Dindex.js17 writeFile,
226 writeFile(to + '.ps1', pwsh, 'utf8'),
227 writeFile(to + '.cmd', cmd, 'utf8'),
228 writeFile(to, sh, 'utf8'),

123456789