12345678910111213 |
- "use strict";
- exports.__esModule = true;
- var plain_1 = require("../factories/plain");
- var find_last_char_index_1 = require("../utils/find-last-char-index");
- function transformPlain(plain, context) {
- var cstNode = plain.cstNode;
- return plain_1.createPlain(context.transformRange({
- origStart: cstNode.valueRange.origStart,
- origEnd: find_last_char_index_1.findLastCharIndex(context.text, cstNode.valueRange.origEnd - 1, /\S/) +
- 1
- }), context.transformContent(plain), cstNode.strValue);
- }
- exports.transformPlain = transformPlain;
|