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

Method visit_ENDMARKER

src/black/linegen.py:385–388  ·  view source on GitHub ↗

End of file. Process outstanding comments and end with a newline.

(self, leaf: Leaf)

Source from the content-addressed store, hash-verified

383 yield from self.line()
384
385 def visit_ENDMARKER(self, leaf: Leaf) -> Iterator[Line]:
386 """End of file. Process outstanding comments and end with a newline."""
387 yield from self.visit_default(leaf)
388 yield from self.line()
389
390 def visit_STANDALONE_COMMENT(self, leaf: Leaf) -> Iterator[Line]:
391 any_open_brackets = self.current_line.bracket_tracker.any_open_brackets()

Callers

nothing calls this directly

Calls 2

visit_defaultMethod · 0.95
lineMethod · 0.95

Tested by

no test coverage detected