MCPcopy Create free account
hub / github.com/nodejs/node / find

Method find

tools/inspector_protocol/jinja2/nodes.py:177–182  ·  view source on GitHub ↗

Find the first node of a given type. If no such node exists the return value is `None`.

(self, node_type)

Source from the content-addressed store, hash-verified

175 yield item
176
177 def find(self, node_type):
178 """Find the first node of a given type. If no such node exists the
179 return value is `None`.
180 """
181 for result in self.find_all(node_type):
182 return result
183
184 def find_all(self, node_type):
185 """Find all the nodes of a given type. If the type is a tuple,

Callers

nothing calls this directly

Calls 1

find_allMethod · 0.95

Tested by

no test coverage detected