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

Method genCSS

packages/less/lib/less/tree/selector.js:185–194  ·  view source on GitHub ↗

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

(context, output)

Source from the content-addressed store, hash-verified

183 * @param {CSSOutput} output
184 */
185 genCSS(context, output) {
186 let i, element;
187 if ((!context || !/** @type {EvalContext & { firstSelector?: boolean }} */ (context).firstSelector) && this.elements[0].combinator.value === '') {
188 output.add(' ', this.fileInfo(), this.getIndex());
189 }
190 for (i = 0; i < this.elements.length; i++) {
191 element = this.elements[i];
192 element.genCSS(context, output);
193 }
194 }
195
196 getIsOutput() {
197 return this.evaldCondition;

Callers

nothing calls this directly

Calls 3

addMethod · 0.80
fileInfoMethod · 0.80
getIndexMethod · 0.80

Tested by

no test coverage detected