UNPKG

@4dsas/doc_preprocessing

Version:

Preprocess 4D doc to be built by docusaurus

39 lines (32 loc) 724 B
var {Instruction, TYPE} = require("./preprocessorInstruction") class Include extends Instruction { constructor(inPath) { super() this._path = inPath } getType() { return TYPE.INCLUDE } get path() { return this._path } } class IncludeManager { constructor() { this._includes = [] } push(inInclude) { this._includes.push(inInclude) } getListIncludePerFile(inPath) { let list = [] for(let include in this._includes) { if(include.path === inPath) { list.push(include) } } return list } } exports.Include = Include exports.IncludeManager = IncludeManager