(pos int)
| 853 | } |
| 854 | |
| 855 | func (p *Printer) hasCommentsAtPosition(pos int) bool { |
| 856 | if p.currentSourceFile == nil { |
| 857 | return false |
| 858 | } |
| 859 | |
| 860 | for range scanner.GetTrailingCommentRanges(p.emitContext.Factory.AsNodeFactory(), p.currentSourceFile.Text(), pos+1) { |
| 861 | return true |
| 862 | } |
| 863 | for range scanner.GetLeadingCommentRanges(p.emitContext.Factory.AsNodeFactory(), p.currentSourceFile.Text(), pos+1) { |
| 864 | return true |
| 865 | } |
| 866 | return false |
| 867 | } |
| 868 | |
| 869 | func (p *Printer) shouldEmitIndirectCall(node *ast.Node) bool { |
| 870 | return p.emitContext.EmitFlags(node)&EFIndirectCall != 0 |
no test coverage detected