Versions in this module Expand all Collapse all v0 v0.0.2 Apr 25, 2026 v0.0.1 Apr 11, 2026 Changes in this version + const FileEmitKindAll + const FileEmitKindAllDts + const FileEmitKindAllDtsEmit + const FileEmitKindAllJs + const FileEmitKindDts + const FileEmitKindDtsEmit + const FileEmitKindDtsErrors + const FileEmitKindDtsMap + const FileEmitKindJs + const FileEmitKindJsInlineMap + const FileEmitKindJsMap + const FileEmitKindNone + func ComputeHash(text string, hashWithText bool) string + func GetMTime(host compiler.CompilerHost, fileName string) time.Time + type BuildInfo struct + AffectedFilesPendingEmit []*BuildInfoFilePendingEmit + ChangeFileSet []BuildInfoFileId + CheckPending bool + EmitDiagnosticsPerFile []*BuildInfoDiagnosticsOfFile + EmitSignatures []*BuildInfoEmitSignature + Errors bool + FileIdsList [][]BuildInfoFileId + FileInfos []*BuildInfoFileInfo + FileNames []string + LatestChangedDtsFile string + Options *collections.OrderedMap[string, any] + ReferencedMap []*BuildInfoReferenceMapEntry + ResolvedRoot []*BuildInfoResolvedRoot + Root []*BuildInfoRoot + SemanticDiagnosticsPerFile []*BuildInfoSemanticDiagnostic + SemanticErrors bool + Version string + func (b *BuildInfo) GetBuildInfoRootInfoReader(buildInfoDirectory string, comparePathOptions tspath.ComparePathsOptions) *BuildInfoRootInfoReader + func (b *BuildInfo) GetCompilerOptions(buildInfoDirectory string) *core.CompilerOptions + func (b *BuildInfo) IsEmitPending(resolved *tsoptions.ParsedCommandLine, buildInfoDirectory string) bool + func (b *BuildInfo) IsIncremental() bool + func (b *BuildInfo) IsValidVersion() bool + type BuildInfoDiagnostic struct + Category diagnostics.Category + Code int32 + End int + File BuildInfoFileId + MessageArgs []string + MessageChain []*BuildInfoDiagnostic + MessageKey diagnostics.Key + NoFile bool + Pos int + RelatedInformation []*BuildInfoDiagnostic + RepopulateInfo *BuildInfoRepopulateInfo + ReportsDeprecated bool + ReportsUnnecessary bool + SkippedOnNoEmit bool + type BuildInfoDiagnosticsOfFile struct + Diagnostics []*BuildInfoDiagnostic + FileId BuildInfoFileId + func (b *BuildInfoDiagnosticsOfFile) MarshalJSON() ([]byte, error) + func (b *BuildInfoDiagnosticsOfFile) UnmarshalJSON(data []byte) error + type BuildInfoEmitSignature struct + DiffersInOptions bool + DiffersOnlyInDtsMap bool + FileId BuildInfoFileId + Signature string + func (b *BuildInfoEmitSignature) MarshalJSON() ([]byte, error) + func (b *BuildInfoEmitSignature) UnmarshalJSON(data []byte) error + type BuildInfoFileId int + type BuildInfoFileIdListId int + type BuildInfoFileInfo struct + func (b *BuildInfoFileInfo) GetFileInfo() *FileInfo + func (b *BuildInfoFileInfo) HasSignature() bool + func (b *BuildInfoFileInfo) MarshalJSON() ([]byte, error) + func (b *BuildInfoFileInfo) UnmarshalJSON(data []byte) error + type BuildInfoFilePendingEmit struct + EmitKind FileEmitKind + FileId BuildInfoFileId + func (b *BuildInfoFilePendingEmit) MarshalJSON() ([]byte, error) + func (b *BuildInfoFilePendingEmit) UnmarshalJSON(data []byte) error + type BuildInfoReader interface + ReadBuildInfo func(config *tsoptions.ParsedCommandLine) *BuildInfo + func NewBuildInfoReader(host compiler.CompilerHost) BuildInfoReader + type BuildInfoReferenceMapEntry struct + FileId BuildInfoFileId + FileIdListId BuildInfoFileIdListId + func (b *BuildInfoReferenceMapEntry) MarshalJSON() ([]byte, error) + func (b *BuildInfoReferenceMapEntry) UnmarshalJSON(data []byte) error + type BuildInfoRepopulateInfo struct + Kind ast.RepopulateDiagnosticKind + Mode core.ResolutionMode + ModuleReference string + PackageName string + type BuildInfoResolvedRoot struct + Resolved BuildInfoFileId + Root BuildInfoFileId + func (b *BuildInfoResolvedRoot) MarshalJSON() ([]byte, error) + func (b *BuildInfoResolvedRoot) UnmarshalJSON(data []byte) error + type BuildInfoRoot struct + End BuildInfoFileId + NonIncremental string + Start BuildInfoFileId + func (b *BuildInfoRoot) MarshalJSON() ([]byte, error) + func (b *BuildInfoRoot) UnmarshalJSON(data []byte) error + type BuildInfoRootInfoReader struct + func (b *BuildInfoRootInfoReader) GetBuildInfoFileInfo(inputFilePath tspath.Path) (*BuildInfoFileInfo, tspath.Path) + func (b *BuildInfoRootInfoReader) Roots() iter.Seq[tspath.Path] + type BuildInfoSemanticDiagnostic struct + Diagnostics *BuildInfoDiagnosticsOfFile + FileId BuildInfoFileId + func (b *BuildInfoSemanticDiagnostic) MarshalJSON() ([]byte, error) + func (b *BuildInfoSemanticDiagnostic) UnmarshalJSON(data []byte) error + type DiagnosticsOrBuildInfoDiagnosticsWithFileName struct + type FileEmitKind uint32 + func GetFileEmitKind(options *core.CompilerOptions) FileEmitKind + type FileInfo struct + func (f *FileInfo) AffectsGlobalScope() bool + func (f *FileInfo) ImpliedNodeFormat() core.ResolutionMode + func (f *FileInfo) Signature() string + func (f *FileInfo) Version() string + type Host interface + GetMTime func(fileName string) time.Time + SetMTime func(fileName string, mTime time.Time) error + func CreateHost(compilerHost compiler.CompilerHost) Host + type Program struct + func NewProgram(program *compiler.Program, oldProgram *Program, host Host, testing bool) *Program + func ReadBuildInfoProgram(config *tsoptions.ParsedCommandLine, reader BuildInfoReader, ...) *Program + func (p *Program) CommonSourceDirectory() string + func (p *Program) Emit(ctx context.Context, options compiler.EmitOptions) *compiler.EmitResult + func (p *Program) GetBindDiagnostics(ctx context.Context, file *ast.SourceFile) []*ast.Diagnostic + func (p *Program) GetConfigFileParsingDiagnostics() []*ast.Diagnostic + func (p *Program) GetDeclarationDiagnostics(ctx context.Context, file *ast.SourceFile) []*ast.Diagnostic + func (p *Program) GetGlobalDiagnostics(ctx context.Context) []*ast.Diagnostic + func (p *Program) GetProgram() *compiler.Program + func (p *Program) GetProgramDiagnostics() []*ast.Diagnostic + func (p *Program) GetSemanticDiagnostics(ctx context.Context, file *ast.SourceFile) []*ast.Diagnostic + func (p *Program) GetSourceFile(path string) *ast.SourceFile + func (p *Program) GetSourceFiles() []*ast.SourceFile + func (p *Program) GetSuggestionDiagnostics(ctx context.Context, file *ast.SourceFile) []*ast.Diagnostic + func (p *Program) GetSyntacticDiagnostics(ctx context.Context, file *ast.SourceFile) []*ast.Diagnostic + func (p *Program) GetTestingData() *TestingData + func (p *Program) HasChangedDtsFile() bool + func (p *Program) IsSourceFileDefaultLibrary(path tspath.Path) bool + func (p *Program) Options() *core.CompilerOptions + func (p *Program) Program() *compiler.Program + type SignatureUpdateKind byte + const SignatureUpdateKindComputedDts + const SignatureUpdateKindStoredAtEmit + const SignatureUpdateKindUsedVersion + type TestingData struct + OldProgramSemanticDiagnosticsPerFile *collections.SyncMap[tspath.Path, *DiagnosticsOrBuildInfoDiagnosticsWithFileName] + SemanticDiagnosticsPerFile *collections.SyncMap[tspath.Path, *DiagnosticsOrBuildInfoDiagnosticsWithFileName] + UpdatedSignatureKinds map[tspath.Path]SignatureUpdateKind