( self, items, kind : str )
| 68 | self._kind : str = '' |
| 69 | |
| 70 | def SetRootNode( self, items, kind : str ): |
| 71 | if items: |
| 72 | assert len( items ) == 1 |
| 73 | self._root_node_indices = [ 0 ] |
| 74 | self._down_nodes.append( HierarchyNode( items[ 0 ], 0 ) ) |
| 75 | self._up_nodes.append( HierarchyNode( items[ 0 ], 0 ) ) |
| 76 | self._kind = kind |
| 77 | return self.HierarchyToLines() |
| 78 | return [] |
| 79 | |
| 80 | |
| 81 | def UpdateHierarchy( self, handle : int, items, direction : str ): |
no test coverage detected