createEmptySelectors method

List<Selector> createEmptySelectors()

Implementation

List<Selector> createEmptySelectors() {
  final el = Element('', '&',
      isVariable: false, index: _index, currentFileInfo: _fileInfo);

  final sels = <Selector>[
    Selector(<Element>[el], index: _index, currentFileInfo: _fileInfo)
  ];

  return sels..first.mediaEmpty = true;

// 3.5.0.beta 20180625
//  Selector.prototype.createEmptySelectors = function() {
//      var el = new Element('', '&', false, this._index, this._fileInfo),
//          sels = [new Selector([el], null, null, this._index, this._fileInfo)];
//      sels[0].mediaEmpty = true;
//      return sels;
//  };
}