(opts options, filename string, source []byte, output chan string, errs chan error)
| 5 | ) |
| 6 | |
| 7 | func format(opts options, filename string, source []byte, output chan string, errs chan error) { |
| 8 | |
| 9 | analyzer := jsluice.NewAnalyzer(source) |
| 10 | |
| 11 | formatted, err := analyzer.RootNode().Format() |
| 12 | if err != nil { |
| 13 | errs <- err |
| 14 | return |
| 15 | } |
| 16 | |
| 17 | output <- formatted |
| 18 | } |
nothing calls this directly
no test coverage detected