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

Method LineCount

internal/compiler/program.go:1475–1481  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1473}
1474
1475func (p *Program) LineCount() int {
1476 var count int
1477 for _, file := range p.files {
1478 count += len(file.ECMALineMap())
1479 }
1480 return count
1481}
1482
1483func (p *Program) IdentifierCount() int {
1484 var count int

Callers 1

statisticsFromProgramFunction · 0.45

Calls 2

lenFunction · 0.85
ECMALineMapMethod · 0.65

Tested by

no test coverage detected