Home
last modified time | relevance | path

Searched refs:visitTree (Results 1 – 2 of 2) sorted by relevance

/third_party/node/deps/npm/node_modules/treeverse/lib/
Ddepth-descent.js52 const visitNode = (visitTree) => { argument
53 if (seen.has(visitTree)) {
54 return seen.get(visitTree)
57 seen.set(visitTree, null)
58 const res = visit ? visit(visitTree) : visitTree
61 seen.set(visitTree, resThen)
62 return kidNodes(visitTree)
64 seen.set(visitTree, fullResult)
67 seen.set(visitTree, res)
68 return kidNodes(visitTree)
Dbreadth.js31 const visitNode = (visitTree) => { argument
32 if (seen.has(visitTree)) {
33 return seen.get(visitTree)
36 seen.set(visitTree, null)
37 const res = visit ? visit(visitTree) : visitTree
40 seen.set(visitTree, resThen)
41 return kidNodes(visitTree)
43 seen.set(visitTree, fullResult)
46 seen.set(visitTree, res)
47 return kidNodes(visitTree)