MCPcopy Create free account
hub / github.com/ampproject/amphtml / scan

Function scan

test/unit/core/context/test-node-discover.js:1102–1108  ·  view source on GitHub ↗
(cn, exclude)

Source from the content-addressed store, hash-verified

1100 const scanned = [];
1101
1102 const scan = (cn, exclude) => {
1103 scanned.push(cn);
1104 if (exclude && exclude.indexOf(cn) != -1) {
1105 return false;
1106 }
1107 return true;
1108 };
1109
1110 // Scan all.
1111 scanned.length = 0;

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected