"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const os_1 = require("os");
const common_utils_1 = require("../common/common.utils");
class FormattingUtils {
    static getSingleLineFromMultiLine(str) {
        return str.split(os_1.EOL)
            .map(part => part.trim())
            .join(' ');
    }
    static nodeToSingleLineText(context, node) {
        const text = common_utils_1.CommonUtils.getText(context, node);
        return FormattingUtils.getSingleLineFromMultiLine(text);
    }
}
exports.FormattingUtils = FormattingUtils;
//# sourceMappingURL=formatting.utils.js.map