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

Method genCSS

packages/less/lib/less/tree/import.js:99–109  ·  view source on GitHub ↗

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

(context, output)

Source from the content-addressed store, hash-verified

97 * @param {CSSOutput} output
98 */
99 genCSS(context, output) {
100 if (this.css && this.path._fileInfo.reference === undefined) {
101 output.add('@import ', this._fileInfo, this._index);
102 this.path.genCSS(context, output);
103 if (this.features) {
104 output.add(' ');
105 this.features.genCSS(context, output);
106 }
107 output.add(';');
108 }
109 }
110
111 /** @returns {string | undefined} */
112 getPath() {

Callers

nothing calls this directly

Calls 1

addMethod · 0.80

Tested by

no test coverage detected