MCPcopy Index your code
hub / github.com/sphinx-doc/sphinx / visit_Try

Method visit_Try

sphinx/pycode/parser.py:461–469  ·  view source on GitHub ↗

Handles Try node and processes body and else-clause. .. note:: pycode parser ignores objects definition in except-clause.

(self, node: ast.Try)

Source from the content-addressed store, hash-verified

459 pass # this assignment is not new definition!
460
461 def visit_Try(self, node: ast.Try) -> None:
462 """Handles Try node and processes body and else-clause.
463
464 .. note:: pycode parser ignores objects definition in except-clause.
465 """
466 for subnode in node.body:
467 self.visit(subnode)
468 for subnode in node.orelse:
469 self.visit(subnode)
470
471 def visit_ClassDef(self, node: ast.ClassDef) -> None:
472 """Handles ClassDef node and set context."""

Callers

nothing calls this directly

Calls 1

visitMethod · 0.95

Tested by

no test coverage detected