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

Method print

internal/project/project.go:429–448  ·  view source on GitHub ↗
(writeFileNames bool, writeFileExplanation bool, builder *strings.Builder)

Source from the content-addressed store, hash-verified

427}
428
429func (p *Project) print(writeFileNames bool, writeFileExplanation bool, builder *strings.Builder) string {
430 builder.WriteString(fmt.Sprintf("\nProject '%s'\n", p.Name()))
431 if p.Program == nil {
432 builder.WriteString("\tFiles (0) NoProgram\n")
433 } else {
434 sourceFiles := p.Program.GetSourceFiles()
435 builder.WriteString(fmt.Sprintf("\tFiles (%d)\n", len(sourceFiles)))
436 if writeFileNames {
437 for _, sourceFile := range sourceFiles {
438 builder.WriteString("\t\t")
439 builder.WriteString(sourceFile.FileName())
440 builder.WriteString("\n")
441 }
442 // !!!
443 // if writeFileExplanation {}
444 }
445 }
446 builder.WriteString(hr)
447 return builder.String()
448}
449
450// GetTypeAcquisition returns the type acquisition settings for this project.
451func (p *Project) GetTypeAcquisition() *core.TypeAcquisition {

Callers

nothing calls this directly

Implementers 1

Projectinternal/project/project.go

Calls 5

NameMethod · 0.95
lenFunction · 0.85
GetSourceFilesMethod · 0.65
FileNameMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected