MCPcopy
hub / github.com/psf/black / visit_match_case

Method visit_match_case

src/black/linegen.py:294–302  ·  view source on GitHub ↗

Visit either a match or case statement.

(self, node: Node)

Source from the content-addressed store, hash-verified

292 yield from self.visit(child)
293
294 def visit_match_case(self, node: Node) -> Iterator[Line]:
295 """Visit either a match or case statement."""
296 normalize_invisible_parens(
297 node, parens_after=set(), mode=self.mode, features=self.features
298 )
299
300 yield from self.line()
301 for child in node.children:
302 yield from self.visit(child)
303
304 def visit_suite(self, node: Node) -> Iterator[Line]:
305 """Visit a suite."""

Callers

nothing calls this directly

Calls 3

lineMethod · 0.95
visitMethod · 0.80

Tested by

no test coverage detected