Lines Matching full:node
58 from docutils.nodes import Element, Node
70 field: nodes.Node, argument
73 docutils helper: unpack a field node in a type-safe manner.
141 node: Element,
143 ) -> Tuple[List[nodes.Node], List[nodes.system_message]]:
145 # node here is the pending_xref node (or whatever nodeclass was
147 results: List[nodes.Node] = [node]
149 if node.get("qapi:array"):
153 if node.get("qapi:optional"):
326 def get_signature_prefix(self) -> List[nodes.Node]:
334 def get_signature_suffix(self) -> List[nodes.Node]:
336 ret: List[nodes.Node] = []
386 source: str, content: Union[str, List[nodes.Node]], classname: str argument
388 node = nodes.container(source)
390 node.append(nodes.Text(content))
392 node.extend(content)
393 node.attributes["classes"].extend(["qapi-infopip", classname])
394 infopips.append(node)
492 # Look for the characteristic " -- " text node that Sphinx
494 for node in ret.traverse(lambda n: str(n) == " -- "):
495 par = node.parent
499 # If the first node's text is q_dummy, this is a dummy
637 def run(self) -> List[Node]:
668 def run(self) -> List[Node]:
970 node: pending_xref,
973 namespace = node.get("qapi:namespace")
974 modname = node.get("qapi:module")
999 location=node,
1010 location=node,
1024 node: pending_xref,
1029 node.get("qapi:namespace"), node.get("qapi:module"), target, None