MCPcopy
hub / github.com/sphinx-doc/sphinx / transform_all

Method transform_all

sphinx/util/docfields.py:354–359  ·  view source on GitHub ↗

Transform all field list children of a node.

(self, node: addnodes.desc_content)

Source from the content-addressed store, hash-verified

352 self.typemap = directive.get_field_type_map()
353
354 def transform_all(self, node: addnodes.desc_content) -> None:
355 """Transform all field list children of a node."""
356 # don't traverse, only handle field lists that are immediate children
357 for child in node:
358 if isinstance(child, nodes.field_list):
359 self.transform(child)
360
361 def transform(self, node: nodes.field_list) -> None:
362 """Transform a single field list *node*."""

Callers 1

runMethod · 0.80

Calls 1

transformMethod · 0.95

Tested by

no test coverage detected