MCPcopy Index your code
hub / github.com/ampproject/amphtml / discover

Method discover

src/core/context/node.js:286–293  ·  view source on GitHub ↗

* Requests the discovery phase. Asynchronously finds the nearest parent for * this node and its root. Roots and parents set directly via `setParent()` * API are not discoverable.

()

Source from the content-addressed store, hash-verified

284 * API are not discoverable.
285 */
286 discover() {
287 if (this.isDiscoverable()) {
288 this.scheduleDiscover_();
289 } else if (this.name && this.children) {
290 // Recursively discover the group's children.
291 this.children.forEach(discoverContextNode);
292 }
293 }
294
295 /**
296 * @return {boolean}

Callers 7

constructorMethod · 0.95
rediscoverFunction · 0.80
rediscoverFunction · 0.80
rediscoverFunction · 0.80
discoverFunction · 0.80
updateTree_Method · 0.80
discoverContextNodeFunction · 0.80

Calls 2

isDiscoverableMethod · 0.95
forEachMethod · 0.45

Tested by

no test coverage detected