source: trip-planner-front/node_modules/istanbul-lib-report/lib/report-base.js@ 1ad8e64

Last change on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 362 bytes
Line 
1'use strict';
2
3// TODO: switch to class private field when targetting node.js 12
4const _summarizer = Symbol('ReportBase.#summarizer');
5
6class ReportBase {
7 constructor(opts = {}) {
8 this[_summarizer] = opts.summarizer;
9 }
10
11 execute(context) {
12 context.getTree(this[_summarizer]).visit(this, context);
13 }
14}
15
16module.exports = ReportBase;
Note: See TracBrowser for help on using the repository browser.