(at: number)
| 202 | |
| 203 | /** The offset after the HTML comment at `at`, or `at + 4` when it never closes. */ |
| 204 | const commentEnd = (at: number): number => { |
| 205 | if (at >= noCommentEndFrom) return at + 4; |
| 206 | const end = source.indexOf('-->', at + 4); |
| 207 | if (end < 0) noCommentEndFrom = Math.min(noCommentEndFrom, at); |
| 208 | return end < 0 ? at + 4 : end + 3; |
| 209 | }; |
| 210 | |
| 211 | /** The offset after the `<script>` or `<style>` element at `at`, or -1. */ |
| 212 | const elementEnd = (at: number): number => { |
no outgoing calls
no test coverage detected