|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
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.