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

Method genCSS

packages/less/lib/less/tree/atrule.js:163–177  ·  view source on GitHub ↗

* @param {EvalContext} context * @param {CSSOutput} output

(context, output)

Source from the content-addressed store, hash-verified

161 * @param {CSSOutput} output
162 */
163 genCSS(context, output) {
164 const value = this.value, rules = this.rules || this.declarations;
165 output.add(/** @type {string} */ (this.name), this.fileInfo(), this.getIndex());
166 if (value) {
167 output.add(' ');
168 /** @type {Node} */ (value).genCSS(context, output);
169 }
170 if (this.simpleBlock) {
171 this.outputRuleset(context, output, /** @type {Node[]} */ (this.declarations));
172 } else if (rules) {
173 this.outputRuleset(context, output, rules);
174 } else {
175 output.add(';');
176 }
177 }
178
179 /**
180 * @param {EvalContext} context

Callers 1

outputRulesetMethod · 0.45

Calls 4

outputRulesetMethod · 0.95
addMethod · 0.80
fileInfoMethod · 0.80
getIndexMethod · 0.80

Tested by

no test coverage detected