MCPcopy Index your code
hub / github.com/microsoft/typescript-go / getSourceFilesToEmit

Method getSourceFilesToEmit

internal/compiler/program.go:719–727  ·  view source on GitHub ↗
(targetSourceFile *ast.SourceFile, forceDtsEmit bool)

Source from the content-addressed store, hash-verified

717}
718
719func (p *Program) getSourceFilesToEmit(targetSourceFile *ast.SourceFile, forceDtsEmit bool) []*ast.SourceFile {
720 if targetSourceFile == nil && !forceDtsEmit {
721 p.sourceFilesToEmitOnce.Do(func() {
722 p.sourceFilesToEmit = getSourceFilesToEmit(p, nil, false)
723 })
724 return p.sourceFilesToEmit
725 }
726 return getSourceFilesToEmit(p, targetSourceFile, forceDtsEmit)
727}
728
729func (p *Program) verifyCompilerOptions() {
730 options := p.Options()

Callers 2

verifyCompilerOptionsMethod · 0.95
EmitMethod · 0.95

Calls 1

getSourceFilesToEmitFunction · 0.85

Tested by

no test coverage detected