(sf *ast.SourceFile, node *ast.Node)
| 455 | } |
| 456 | |
| 457 | func formatExecutionSourceNode(sf *ast.SourceFile, node *ast.Node) string { |
| 458 | if sf == nil || node == nil { |
| 459 | return "" |
| 460 | } |
| 461 | return escapeNewlines(scanner.GetSourceTextOfNodeFromSourceFile(sf, node, false)) |
| 462 | } |
| 463 | |
| 464 | // escapeNewlines replaces newlines with \n for baseline display. |
| 465 | func escapeNewlines(s string) string { |
no test coverage detected