(comment ast.CommentRange)
| 743 | } |
| 744 | |
| 745 | func (p *Printer) shouldWriteComment(comment ast.CommentRange) bool { |
| 746 | return !p.Options.OnlyPrintJSDocStyle || |
| 747 | p.currentSourceFile != nil && isJSDocLikeText(p.currentSourceFile.Text(), comment) || |
| 748 | p.currentSourceFile != nil && IsPinnedComment(p.currentSourceFile.Text(), comment) |
| 749 | } |
| 750 | |
| 751 | func (p *Printer) shouldEmitIndented(node *ast.Node) bool { |
| 752 | return p.emitContext.EmitFlags(node)&EFIndented != 0 |
no test coverage detected