MCPcopy Create free account
hub / github.com/angular/angular / writeDiagnosticsFile

Function writeDiagnosticsFile

packages/compiler-cli/preprocessor/ngp.ts:116–130  ·  view source on GitHub ↗
(
  compiler: HybridCompiler,
  tsconfigPath: string | undefined,
)

Source from the content-addressed store, hash-verified

114}
115
116async function writeDiagnosticsFile(
117 compiler: HybridCompiler,
118 tsconfigPath: string | undefined,
119): Promise<void> {
120 if (!tsconfigPath) {
121 return;
122 }
123 const diagPath = getDiagnosticPath(tsconfigPath);
124 const content = serializeDiagnostics(
125 tsconfigPath,
126 compiler.getDiagnostics(),
127 compiler.optionDiagnostics,
128 );
129 await fs.writeFile(diagPath, content, 'utf-8');
130}
131
132async function processFile(
133 file: AnalysisResult,

Callers 1

runFunction · 0.85

Calls 4

getDiagnosticPathFunction · 0.85
serializeDiagnosticsFunction · 0.85
getDiagnosticsMethod · 0.65
writeFileMethod · 0.65

Tested by

no test coverage detected