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

Method emitPrologueDirectives

internal/printer/printer.go:4592–4602  ·  view source on GitHub ↗
(statements *ast.StatementList)

Source from the content-addressed store, hash-verified

4590}
4591
4592func (p *Printer) emitPrologueDirectives(statements *ast.StatementList) int {
4593 for i, statement := range statements.Nodes {
4594 if ast.IsPrologueDirective(statement) {
4595 p.writeLine()
4596 p.emitStatement(statement)
4597 } else {
4598 return i
4599 }
4600 }
4601 return len(statements.Nodes)
4602}
4603
4604func (p *Printer) emitHelpers(node *ast.Node) bool {
4605 helpersEmitted := false

Callers 2

emitFunctionBodyMethod · 0.95
emitSourceFileMethod · 0.95

Calls 4

writeLineMethod · 0.95
emitStatementMethod · 0.95
IsPrologueDirectiveFunction · 0.92
lenFunction · 0.85

Tested by

no test coverage detected