MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / createDiagnosticReporter

Function createDiagnosticReporter

src/cli/report.ts:6–9  ·  view source on GitHub ↗
(pretty: boolean, system = ts.sys)

Source from the content-addressed store, hash-verified

4 diagnostic.source === "typescript-to-lua" ? { ...diagnostic, code: "TL" as any } : diagnostic;
5
6export function createDiagnosticReporter(pretty: boolean, system = ts.sys): ts.DiagnosticReporter {
7 const reporter = ts.createDiagnosticReporter(system, pretty);
8 return diagnostic => reporter(prepareDiagnosticForFormatting(diagnostic));
9}

Callers 2

tstl.tsFile · 0.90
updateReportDiagnosticFunction · 0.90

Calls 1

Tested by

no test coverage detected