Contexts.eval constructor

Contexts.eval([dynamic options, List<Node> frames ])

Build Context to render the tree options is LessOptions or Context

Implementation

//2.2.0 TODO
factory Contexts.eval([dynamic options, List<Node> frames]) {
  final Contexts context = Contexts();

  evalCopyProperties(context, options);
  context.frames = frames ?? <Node>[];

  return context;

//2.4.0 20150315
//  contexts.Eval = function(options, frames) {
//      copyFromOriginal(options, this, evalCopyProperties);
//
//      if (typeof this.paths === "string") { this.paths = [this.paths]; }
//
//      this.frames = frames || [];
//      this.importantScope = this.importantScope || [];
//  };
}