genCSS method

  1. @override
void genCSS(
  1. Contexts context,
  2. Output output
)
override

Writes Selector as String in output: ' selector'. White space prefixed.

Implementation

@override
void genCSS(Contexts context, Output output) {
  if ((context == null || !context.firstSelector) &&
      elements[0].combinator.value == '') {
    output.add(' ', fileInfo: currentFileInfo, index: index);
  }
  for (var i = 0; i < elements.length; i++) {
    elements[i].genCSS(context, output);
  }

//3.0.0 20170528
// Selector.prototype.genCSS = function (context, output) {
//     var i, element;
//     if ((!context || !context.firstSelector) && this.elements[0].combinator.value === "") {
//         output.add(' ', this.fileInfo(), this.getIndex());
//     }
//     for (i = 0; i < this.elements.length; i++) {
//         element = this.elements[i];
//         element.genCSS(context, output);
//     }
// };
}