(source: string)
| 216 | |
| 217 | /** `source` with its Razor blanked; every offset and line stays where it was. */ |
| 218 | export function blankRazorInScript(source: string): string { |
| 219 | if (!source.includes('@')) return source; |
| 220 | const out = source.split(''); |
| 221 | blankRazor(source, out, 0, source.length); |
| 222 | return out.join(''); |
| 223 | } |
| 224 | |
| 225 | /** `source` with its `@* … *@` comments blanked, so a commented-out `<script>` is not a script. */ |
| 226 | export function blankRazorComments(source: string): string { |