Last change
on this file since 188ee53 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
|
---|
4 | const _summarizer = Symbol('ReportBase.#summarizer');
|
---|
5 |
|
---|
6 | class 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 |
|
---|
16 | module.exports = ReportBase;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.