UNPKG

esxdoc

Version:

Good Documentation Generator For JavaScript

22 lines (18 loc) 349 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class ASTNodeContainer { constructor() { this._docId = 0; this._nodes = {}; } addNode(node) { this._nodes[this._docId] = node; return this._docId++; } getNode(id) { return this._nodes[id]; } } exports.default = new ASTNodeContainer();