MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / blankRazorInScript

Function blankRazorInScript

src/extraction/razor-script.ts:218–223  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

216
217/** `source` with its Razor blanked; every offset and line stays where it was. */
218export 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. */
226export function blankRazorComments(source: string): string {

Callers 3

processScriptBlocksMethod · 0.90
leftFunction · 0.90

Calls 2

blankRazorFunction · 0.85
joinMethod · 0.45

Tested by 1

leftFunction · 0.72