(comment ast.CommentRange)
| 633 | } |
| 634 | |
| 635 | func (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 | |
| 645 | func (p *Printer) writeCommentRangeWorker(text string, lineMap []core.TextPos, kind ast.Kind, loc core.TextRange) { |
| 646 | if kind == ast.KindMultiLineCommentTrivia { |
no test coverage detected