MCPcopy Create free account
hub / github.com/microsoft/typescript-go / compileAndEmit

Method compileAndEmit

internal/execute/watcher.go:370–382  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

368}
369
370func (w *Watcher) compileAndEmit() tsc.CompileAndEmitResult {
371 return tsc.EmitFilesAndReportErrors(tsc.EmitInput{
372 Sys: w.sys,
373 ProgramLike: w.program,
374 Program: w.program.GetProgram(),
375 Config: w.config,
376 ReportDiagnostic: w.reportDiagnostic,
377 ReportErrorSummary: w.reportErrorSummary,
378 Writer: w.sys.Writer(),
379 CompileTimes: &tsc.CompileTimes{},
380 Testing: w.testing,
381 })
382}
383
384func (w *Watcher) recheckTsConfig() bool {
385 if w.configFileName == "" {

Callers 1

doBuildMethod · 0.95

Calls 3

EmitFilesAndReportErrorsFunction · 0.92
GetProgramMethod · 0.65
WriterMethod · 0.65

Tested by

no test coverage detected