MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / _treeFor

Function _treeFor

lib/models/addon.js:624–638  ·  view source on GitHub ↗

@private @param {String} name @method _treeFor @return {tree}

(name)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…