MCPcopy
hub / github.com/ycm-core/YouCompleteMe / ToRootLocation

Method ToRootLocation

python/ycm/hierarchy_tree.py:30–38  ·  view source on GitHub ↗
( self, subindex : int )

Source from the content-addressed store, hash-verified

28
29
30 def ToRootLocation( self, subindex : int ):
31 location = self._data.get( 'root_location' )
32 if location:
33 file = location[ 'filepath' ]
34 line = location[ 'line_num' ]
35 column = location[ 'column_num' ]
36 return file, line, column
37 else:
38 return self.ToLocation( subindex )
39
40
41 def ToLocation( self, subindex : int ):

Callers 1

HandleToRootLocationMethod · 0.80

Calls 2

ToLocationMethod · 0.95
getMethod · 0.80

Tested by

no test coverage detected