Selector constructor

Selector(
  1. dynamic elements,
  2. {List<Extend> extendList,
  3. Node condition,
  4. int index,
  5. FileInfo currentFileInfo,
  6. VisibilityInfo visibilityInfo}
)

elements is List | String (to be parsed)

Implementation

Selector(dynamic elements,
    {this.extendList,
    this.condition,
    int index,
    FileInfo currentFileInfo,
    VisibilityInfo visibilityInfo})
    : super.init(currentFileInfo: currentFileInfo, index: index) {
  //clone if List.clear is used, to avoid collateral effects
  this.elements = getElements(elements);
  evaldCondition = condition == null;
  copyVisibilityInfo(visibilityInfo);
  setParent(this.elements, this);

//3.0.0 20170528
//  var Selector = function (elements, extendList, condition, index, currentFileInfo, visibilityInfo) {
//    this.extendList = extendList;
//    this.condition = condition;
//    this.evaldCondition = !condition;
//    this._index = index;
//    this._fileInfo = currentFileInfo;
//    this.elements = this.getElements(elements);
//    this.mixinElements_ = undefined;
//    this.copyVisibilityInfo(visibilityInfo);
//    this.setParent(this.elements, this);
//  };
}