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

Method writeCommentRange

internal/printer/printer.go:635–643  ·  view source on GitHub ↗
(comment ast.CommentRange)

Source from the content-addressed store, hash-verified

633}
634
635func (p *Printer) writeCommentRange(comment ast.CommentRange) {
636 if p.currentSourceFile == nil {
637 return
638 }
639
640 text := p.currentSourceFile.Text()
641 lineMap := p.currentSourceFile.ECMALineMap()
642 p.writeCommentRangeWorker(text, lineMap, comment.Kind, comment.TextRange)
643}
644
645func (p *Printer) writeCommentRangeWorker(text string, lineMap []core.TextPos, kind ast.Kind, loc core.TextRange) {
646 if kind == ast.KindMultiLineCommentTrivia {

Callers 1

emitCommentMethod · 0.95

Calls 3

TextMethod · 0.65
ECMALineMapMethod · 0.65

Tested by

no test coverage detected