(source: string, newTokens: EditmodeTokens)
| 117 | } |
| 118 | |
| 119 | export function replaceEditmodeBlock(source: string, newTokens: EditmodeTokens): string { |
| 120 | const json = JSON.stringify(newTokens, null, 2); |
| 121 | return replaceMarkerBlock(source, 'EDITMODE', json); |
| 122 | } |
| 123 | |
| 124 | function parseLegacyStringLiteral(raw: string): string | null { |
| 125 | if (raw.length < 2) return null; |
no test coverage detected