MCPcopy Index your code
hub / github.com/nodejs/node / Visit

Method Visit

tools/gyp/pylib/gyp/input.py:1718–1724  ·  view source on GitHub ↗
(node, path)

Source from the content-addressed store, hash-verified

1716 visited = set()
1717
1718 def Visit(node, path):
1719 for child in node.dependents:
1720 if child in path:
1721 results.append([child] + path[: path.index(child) + 1])
1722 elif child not in visited:
1723 visited.add(child)
1724 Visit(child, [child] + path)
1725
1726 visited.add(self)
1727 Visit(self, [self])

Callers

nothing calls this directly

Calls 4

VisitFunction · 0.85
addMethod · 0.65
appendMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected