Ejemplo n.º 1
0
 def get_section_node(classDoc, section):
     section_node = None
     for node in api.docTreeIterator(classDoc, node_types[section]):
         section_node = node  # first should be only
         break
     if not section_node:
         section_node = tree.Node(node_types[section])
         classDoc.addChild(section_node)
     return section_node
Ejemplo n.º 2
0
 def get_section_node(classDoc, section):
     section_node = None
     for node in api.docTreeIterator(classDoc, node_types[section]):
         section_node = node  # first should be only
         break
     if not section_node:
         section_node = tree.Node(node_types[section])
         classDoc.addChild(section_node)
     return section_node