|
|
|
@ -238,10 +238,9 @@ function transform(name, dest) {
|
|
|
|
Block(node, context) {
|
|
|
|
Block(node, context) {
|
|
|
|
if (!node.value.includes('PARAMETER')) return;
|
|
|
|
if (!node.value.includes('PARAMETER')) return;
|
|
|
|
|
|
|
|
|
|
|
|
const value = node.value
|
|
|
|
const value = /** @type {string} */ (node.value)
|
|
|
|
.split('\n')
|
|
|
|
.split('\n')
|
|
|
|
.map(
|
|
|
|
.map((line) => {
|
|
|
|
/** @param {string} line */ (line) => {
|
|
|
|
|
|
|
|
if (line === ' * MESSAGE') {
|
|
|
|
if (line === ' * MESSAGE') {
|
|
|
|
return messages[messages.length - 1]
|
|
|
|
return messages[messages.length - 1]
|
|
|
|
.split('\n')
|
|
|
|
.split('\n')
|
|
|
|
@ -262,9 +261,8 @@ function transform(name, dest) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return line;
|
|
|
|
return line;
|
|
|
|
}
|
|
|
|
})
|
|
|
|
)
|
|
|
|
.filter((x) => x !== '')
|
|
|
|
.filter(/** @param {string} x */ (x) => x !== '')
|
|
|
|
|
|
|
|
.join('\n');
|
|
|
|
.join('\n');
|
|
|
|
|
|
|
|
|
|
|
|
if (value !== node.value) {
|
|
|
|
if (value !== node.value) {
|
|
|
|
|