MCPcopy
hub / github.com/less/less.js / toCSS

Method toCSS

packages/less/lib/less/tree/node.js:136–148  ·  view source on GitHub ↗

* @param {EvalContext} context * @returns {string}

(context)

Source from the content-addressed store, hash-verified

134 * @returns {string}
135 */
136 toCSS(context) {
137 /** @type {string[]} */
138 const strs = [];
139 this.genCSS(context, {
140 add: function(chunk, fileInfo, index) {
141 strs.push(chunk);
142 },
143 isEmpty: function () {
144 return strs.length === 0;
145 }
146 });
147 return strs.join('');
148 }
149
150 /**
151 * @param {EvalContext} context

Callers 15

to-css-visitor.jsFile · 0.45
doExtendChainingMethod · 0.45
svg.jsFile · 0.45
styleExpressionFunction · 0.45
types.jsFile · 0.45
minMaxFunction · 0.45
string.jsFile · 0.45
evaluateJavaScriptMethod · 0.45
jsifyMethod · 0.45
variableReplacementMethod · 0.45
propertyReplacementMethod · 0.45

Calls 3

genCSSMethod · 0.95
pushMethod · 0.80
joinMethod · 0.65

Tested by

no test coverage detected