(node *ast.Node, parent *ast.Node)
| 435 | } |
| 436 | |
| 437 | func (p *Printer) writeLineSeparatorsAfter(node *ast.Node, parent *ast.Node) { |
| 438 | if p.Options.PreserveSourceNewlines { |
| 439 | trailingNewlines := p.getClosingLineTerminatorCount(parent, node, LFNone, core.NewTextRange(-1, -1) /*childrenTextRange*/) |
| 440 | if trailingNewlines > 0 { |
| 441 | p.writeLineRepeat(trailingNewlines) |
| 442 | } |
| 443 | } |
| 444 | } |
| 445 | |
| 446 | func (p *Printer) getLinesBetweenNodes(parent *ast.Node, node1 *ast.Node, node2 *ast.Node) int { |
| 447 | if p.shouldElideIndentation(parent) { |
no test coverage detected