eval method

  1. @override
MixinDefinition eval (Contexts context)
override

Implementation

@override
MixinDefinition eval(Contexts context) {
  final List<Node> frames = this.frames ?? context.frames.sublist(0);
  return MixinDefinition(name, params, rules, condition,
      variadic: variadic,
      index: index,
      currentFileInfo: currentFileInfo,
      frames: frames);

//3.0.0 20160714
// Definition.prototype.eval = function (context) {
//     return new Definition(this.name, this.params, this.rules, this.condition, this.variadic, this.frames || utils.copyArray(context.frames));
// };
}