MCPcopy Create free account
hub / github.com/ycm-core/YouCompleteMe / SetRootNode

Method SetRootNode

python/ycm/hierarchy_tree.py:70–78  ·  view source on GitHub ↗
( self, items, kind : str )

Source from the content-addressed store, hash-verified

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 ):

Callers 1

Calls 2

HierarchyToLinesMethod · 0.95
HierarchyNodeClass · 0.85

Tested by

no test coverage detected