Versions in this module Expand all Collapse all v0 v0.0.1 Mar 15, 2025 Changes in this version + func SortAndDeduplicateDiagnostics(diagnostics []*ast.Diagnostic) []*ast.Diagnostic + type CompilerHost interface + DefaultLibraryPath func() string + FS func() vfs.FS + GetCurrentDirectory func() string + GetSourceFile func(fileName string, path tspath.Path, languageVersion core.ScriptTarget) *ast.SourceFile + NewLine func() string + Trace func(msg string) + func NewCompilerHost(options *core.CompilerOptions, currentDirectory string, fs vfs.FS, ...) CompilerHost + type EmitHost interface + CommonSourceDirectory func() string + GetCurrentDirectory func() string + GetEmitResolver func(file *ast.SourceFile, skipDiagnostics bool) printer.EmitResolver + IsEmitBlocked func(file string) bool + Options func() *core.CompilerOptions + SourceFiles func() []*ast.SourceFile + UseCaseSensitiveFileNames func() bool + WriteFile func(fileName string, text string, writeByteOrderMark bool, ...) error + type EmitOptions struct + TargetSourceFile *ast.SourceFile + type EmitResult struct + Diagnostics []*ast.Diagnostic + EmitSkipped bool + EmittedFiles []string + type FileIncludeKind int + const FileIncludeKindAutomaticTypeDirectiveFile + const FileIncludeKindImport + const FileIncludeKindLibFile + const FileIncludeKindLibReferenceDirective + const FileIncludeKindOutputFromProjectReference + const FileIncludeKindReferenceFile + const FileIncludeKindRootFile + const FileIncludeKindSourceFromProjectReference + const FileIncludeKindTypeReferenceDirective + type FileIncludeReason struct + Index int + Kind FileIncludeKind + type FileInfo struct + Name string + Size int64 + type Program struct + func NewProgram(options ProgramOptions) *Program + func NewProgramFromParsedCommandLine(config *tsoptions.ParsedCommandLine, host CompilerHost) *Program + func (p *Program) BindSourceFiles() + func (p *Program) CheckSourceFiles() + func (p *Program) CommonSourceDirectory() string + func (p *Program) Emit(options *EmitOptions) *EmitResult + func (p *Program) GetBindDiagnostics(sourceFile *ast.SourceFile) []*ast.Diagnostic + func (p *Program) GetCompilerOptions() *core.CompilerOptions + func (p *Program) GetConfigFileParsingDiagnostics() []*ast.Diagnostic + func (p *Program) GetEmitModuleFormatOfFile(sourceFile *ast.SourceFile) core.ModuleKind + func (p *Program) GetEmitModuleFormatOfFileWorker(sourceFile *ast.SourceFile, options *core.CompilerOptions) core.ModuleKind + func (p *Program) GetGlobalDiagnostics() []*ast.Diagnostic + func (p *Program) GetImpliedNodeFormatForEmit(sourceFile *ast.SourceFile) core.ResolutionMode + func (p *Program) GetOptionsDiagnostics() []*ast.Diagnostic + func (p *Program) GetResolvedModule(file *ast.SourceFile, moduleReference string) *ast.SourceFile + func (p *Program) GetSemanticDiagnostics(sourceFile *ast.SourceFile) []*ast.Diagnostic + func (p *Program) GetSourceFile(filename string) *ast.SourceFile + func (p *Program) GetSourceFileByPath(path tspath.Path) *ast.SourceFile + func (p *Program) GetSourceFiles() []*ast.SourceFile + func (p *Program) GetSyntacticDiagnostics(sourceFile *ast.SourceFile) []*ast.Diagnostic + func (p *Program) GetTypeChecker() *checker.Checker + func (p *Program) GetTypeCheckerForFile(file *ast.SourceFile) *checker.Checker + func (p *Program) Host() CompilerHost + func (p *Program) Options() *core.CompilerOptions + func (p *Program) PrintSourceFileWithTypes() + func (p *Program) SourceFiles() []*ast.SourceFile + func (p *Program) TypeCount() int + type ProgramOptions struct + ConfigFileName string + ConfigFileParsingDiagnostics []*ast.Diagnostic + Host CompilerHost + Options *core.CompilerOptions + ProjectReference []core.ProjectReference + RootFiles []string + SingleThreaded bool + type WriteFileData struct + Diagnostics []*ast.Diagnostic + DiffersOnlyInMap bool + SkippedDtsWrite bool + SourceMapUrlPos int