Versions in this module Expand all Collapse all v0 v0.0.2 Apr 25, 2026 Changes in this version type EmitInput + Tracing *tracing.Tracing v0.0.1 Apr 11, 2026 Changes in this version + func EmitAndReportStatistics(input EmitInput) (CompileAndEmitResult, *Statistics) + func GetTraceWithWriterFromSys(w io.Writer, locale locale.Locale, testing CommandLineTesting) func(msg *diagnostics.Message, args ...any) + func PrintBuildHelp(sys System, locale locale.Locale, buildOptions []*tsoptions.CommandLineOption) + func PrintHelp(sys System, locale locale.Locale, commandLine *tsoptions.ParsedCommandLine) + func PrintVersion(sys System, locale locale.Locale) + func QuietDiagnosticReporter(diagnostic *ast.Diagnostic) + func QuietDiagnosticsReporter(diagnostics []*ast.Diagnostic) + func WriteConfigFile(sys System, locale locale.Locale, reportDiagnostic DiagnosticReporter, ...) + type CommandLineResult struct + Status ExitStatus + Watcher Watcher + type CommandLineTesting interface + GetTrace func(w io.Writer, locale locale.Locale) func(msg *diagnostics.Message, args ...any) + OnBuildStatusReportEnd func(w io.Writer) + OnBuildStatusReportStart func(w io.Writer) + OnEmittedFiles func(result *compiler.EmitResult, ...) + OnListFilesEnd func(w io.Writer) + OnListFilesStart func(w io.Writer) + OnProgram func(program *incremental.Program) + OnStatisticsEnd func(w io.Writer) + OnStatisticsStart func(w io.Writer) + OnWatchStatusReportEnd func() + OnWatchStatusReportStart func() + type CompileAndEmitResult struct + Diagnostics []*ast.Diagnostic + EmitResult *compiler.EmitResult + Status ExitStatus + func EmitFilesAndReportErrors(input EmitInput) (result CompileAndEmitResult) + type CompileTimes struct + BuildInfoReadTime time.Duration + ChangesComputeTime time.Duration + ConfigTime time.Duration + ParseTime time.Duration + type DiagnosticReporter = func(*ast.Diagnostic) + func CreateBuilderStatusReporter(sys System, w io.Writer, locale locale.Locale, options *core.CompilerOptions, ...) DiagnosticReporter + func CreateDiagnosticReporter(sys System, w io.Writer, locale locale.Locale, options *core.CompilerOptions) DiagnosticReporter + func CreateWatchStatusReporter(sys System, locale locale.Locale, options *core.CompilerOptions, ...) DiagnosticReporter + type DiagnosticsReporter = func(diagnostics []*ast.Diagnostic) + func CreateReportErrorSummary(sys System, locale locale.Locale, options *core.CompilerOptions) DiagnosticsReporter + type EmitInput struct + CompileTimes *CompileTimes + Config *tsoptions.ParsedCommandLine + Program *compiler.Program + ProgramLike compiler.ProgramLike + ReportDiagnostic DiagnosticReporter + ReportErrorSummary DiagnosticsReporter + Sys System + Testing CommandLineTesting + TestingMTimesCache *collections.SyncMap[tspath.Path, time.Time] + WriteFile compiler.WriteFile + Writer io.Writer + type ExitStatus int + const ExitStatusDiagnosticsPresent_OutputsGenerated + const ExitStatusDiagnosticsPresent_OutputsSkipped + const ExitStatusInvalidProject_OutputsSkipped + const ExitStatusNotImplemented + const ExitStatusProjectReferenceCycle_OutputsSkipped + const ExitStatusSuccess + type ExtendedConfigCache struct + func (e *ExtendedConfigCache) GetExtendedConfig(fileName string, path tspath.Path, resolutionStack []string, ...) *tsoptions.ExtendedConfigCacheEntry + type Statistics struct + Projects int + ProjectsBuilt int + TimestampUpdates int + func (s *Statistics) Aggregate(stat *Statistics) + func (s *Statistics) Report(w io.Writer, testing CommandLineTesting) + func (s *Statistics) SetTotalTime(totalTime time.Duration) + type System interface + DefaultLibraryPath func() string + FS func() vfs.FS + GetCurrentDirectory func() string + GetEnvironmentVariable func(name string) string + GetWidthOfTerminal func() int + Now func() time.Time + SinceStart func() time.Duration + WriteOutputIsTTY func() bool + Writer func() io.Writer + type Watcher interface + DoCycle func()