MCPcopy Index your code
hub / github.com/ycm-core/YouCompleteMe / HandleToRootLocation

Method HandleToRootLocation

python/ycm/hierarchy_tree.py:200–209  ·  view source on GitHub ↗
( self, handle : int )

Source from the content-addressed store, hash-verified

198
199
200 def HandleToRootLocation( self, handle : int ):
201 node_index = handle_to_index( handle )
202
203 if handle >= 0:
204 node = self._down_nodes[ node_index ]
205 else:
206 node = self._up_nodes[ node_index ]
207
208 location_index = handle_to_location_index( handle )
209 return node.ToRootLocation( location_index )
210
211
212 def UpdateChangesRoot( self, handle : int, direction : str ):

Callers 1

Calls 3

handle_to_indexFunction · 0.85
handle_to_location_indexFunction · 0.85
ToRootLocationMethod · 0.80

Tested by

no test coverage detected