MCPcopy Create free account
hub / github.com/idank/explainshell / visitnode

Method visitnode

tests/test_matcher.py:812–815  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

810 self.maxdepth = 0
811
812 def visitnode(self, node):
813 if "substitution" in node.kind:
814 self.depth += 1
815 self.maxdepth = max(self.maxdepth, self.depth)
816
817 def visitendnode(self, node):
818 if "substitution" in node.kind:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected