UNPKG

sass-formatter

Version:
22 lines (21 loc) 793 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FormatAtForwardOrAtUse = FormatAtForwardOrAtUse; const format_convert_1 = require("./format.convert"); const utility_1 = require("../utility"); const logger_1 = require("../logger"); function FormatAtForwardOrAtUse(line, STATE) { if ((0, utility_1.convertLine)(line, STATE)) { const convertRes = (0, format_convert_1.convertScssOrCss)(line.get(), STATE); line.set(convertRes.text); } line.set(line.get().trimStart()); (0, logger_1.PushDebugInfo)({ title: '@forward or @use', lineNumber: STATE.currentLine, oldLineText: STATE.lines[STATE.currentLine], newLineText: line.get(), debug: STATE.CONFIG.debug, }); return line.get(); }