Lines Matching full:section

223     def visit_paragraph(self, section: QAPIDoc.Section) -> None:  argument
225 if not section.text:
229 self.add_lines(section.text, section.info)
232 def visit_member(self, section: QAPIDoc.ArgSection) -> None:
237 assert section.member
240 section.member,
242 section.text if section.text else "Not documented",
243 section.info,
246 def visit_feature(self, section: QAPIDoc.ArgSection) -> None:
250 assert section.text # Guaranteed by parser.py
251 assert section.member
253 self.generate_field("feat", section.member, section.text, section.info)
255 def visit_returns(self, section: QAPIDoc.Section) -> None: argument
266 assert section.text
267 self.add_field("return", typ, section.text, section.info)
269 def visit_errors(self, section: QAPIDoc.Section) -> None: argument
273 self.add_lines(f":error:\n{section.text}", section.info)
347 # go at the end of the members section(s) if any. Note that
348 # index 0 is assumed to be a plain intro section, even if it is
349 # empty; and that a members section if present will always
350 # immediately follow the opening PLAIN section.
359 for i, section in enumerate(sections):
361 section.text = re.sub(r"@([\w-]+)", r"``\1``", section.text)
363 if section.kind == QAPIDoc.Kind.PLAIN:
364 self.visit_paragraph(section)
365 elif section.kind == QAPIDoc.Kind.MEMBER:
366 assert isinstance(section, QAPIDoc.ArgSection)
367 self.visit_member(section)
368 elif section.kind == QAPIDoc.Kind.FEATURE:
369 assert isinstance(section, QAPIDoc.ArgSection)
370 self.visit_feature(section)
371 elif section.kind in (QAPIDoc.Kind.SINCE, QAPIDoc.Kind.TODO):
374 elif section.kind == QAPIDoc.Kind.RETURNS:
375 self.visit_returns(section)
376 elif section.kind == QAPIDoc.Kind.ERRORS:
377 self.visit_errors(section)
408 # Section/subsection heading (if present, will always be the
541 contentnode = nodes.section()
548 node: nodes.Element = nodes.section()
693 content_node: nodes.Element = nodes.section()