( msg: string | MessageFormatElement[] )
| 28 | |
| 29 | /** @internal */ |
| 30 | export function generateXXLS( |
| 31 | msg: string | MessageFormatElement[] |
| 32 | ): MessageFormatElement[] { |
| 33 | const ast = typeof msg === 'string' ? parse(msg) : msg |
| 34 | const lastChunk = ast[ast.length - 1] |
| 35 | if (lastChunk && isLiteralElement(lastChunk)) { |
| 36 | lastChunk.value += 'SSSSSSSSSSSSSSSSSSSSSSSSS' |
| 37 | return ast |
| 38 | } |
| 39 | return [...ast, {type: TYPE.literal, value: 'SSSSSSSSSSSSSSSSSSSSSSSSS'}] |
| 40 | } |
| 41 | |
| 42 | /** @internal */ |
| 43 | export function generateXXAC( |
nothing calls this directly
no test coverage detected