makeImportant method

  1. @override
MixinDefinition makeImportant ()
override

Implementation

@override
MixinDefinition makeImportant() {
  final List<Node> rules = (this.rules == null)
      ? this.rules
      : this
          .rules
          .map((Node r) => (r is MakeImportantNode)
              ? (r as MakeImportantNode).makeImportant()
              : r)
          .toList();

  return MixinDefinition(name, params, rules, condition,
      variadic: variadic,
      index: index,
      currentFileInfo: currentFileInfo,
      frames: frames);

//2.4.0
//  Definition.prototype.makeImportant = function() {
//      var rules = !this.rules ? this.rules : this.rules.map(function (r) {
//          if (r.makeImportant) {
//              return r.makeImportant(true);
//          } else {
//              return r;
//          }
//      });
//      var result = new Definition (this.name, this.params, rules, this.condition, this.variadic, this.frames);
//      return result;
//  };
}