MCPcopy Index your code
hub / github.com/angular/angular / write

Method write

packages/compiler-cli/test/ngtsc/env.ts:204–214  ·  view source on GitHub ↗
(fileName: string, content: string)

Source from the content-addressed store, hash-verified

202 }
203
204 write(fileName: string, content: string) {
205 const absFilePath = this.fs.resolve(this.basePath, fileName);
206 if (this.multiCompileHostExt !== null) {
207 this.multiCompileHostExt.invalidate(absFilePath);
208 if (!fileName.endsWith('.ts')) {
209 this.changedResources!.add(absFilePath);
210 }
211 }
212 this.fs.ensureDir(this.fs.dirname(absFilePath));
213 this.fs.writeFile(absFilePath, content);
214 }
215
216 invalidateCachedFile(fileName: string): void {
217 const absFilePath = this.fs.resolve(this.basePath, fileName);

Callers 2

setupMethod · 0.95
tsconfigMethod · 0.95

Calls 6

resolveMethod · 0.65
addMethod · 0.65
ensureDirMethod · 0.65
dirnameMethod · 0.65
writeFileMethod · 0.65
invalidateMethod · 0.45

Tested by

no test coverage detected