@private @param {String} name @method _treeFor @return {tree}
(name)
| 622 | @return {tree} |
| 623 | */ |
| 624 | _treeFor(name) { |
| 625 | let treePath = path.resolve(this.root, this.treePaths[name]); |
| 626 | let treeForMethod = this.treeForMethods[name]; |
| 627 | let tree; |
| 628 | |
| 629 | if (fs.existsSync(treePath)) { |
| 630 | tree = this.treeGenerator(treePath); |
| 631 | } |
| 632 | |
| 633 | if (this[treeForMethod]) { |
| 634 | tree = this[treeForMethod](tree); |
| 635 | } |
| 636 | |
| 637 | return tree; |
| 638 | }, |
| 639 | |
| 640 | /** |
| 641 | Calculates a cacheKey for the given treeType. It is expected to return a |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…