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

Function _BuildChunk

python/ycm/tests/vimsupport_test.py:39–58  ·  view source on GitHub ↗
( start_line,
                 start_column,
                 end_line,
                 end_column,
                 replacement_text, filepath='test_file_name' )

Source from the content-addressed store, hash-verified

37
38
39def _BuildChunk( start_line,
40 start_column,
41 end_line,
42 end_column,
43 replacement_text, filepath='test_file_name' ):
44 return {
45 'range': {
46 'start': {
47 'filepath': filepath,
48 'line_num': start_line,
49 'column_num': start_column,
50 },
51 'end': {
52 'filepath': filepath,
53 'line_num': end_line,
54 'column_num': end_column,
55 },
56 },
57 'replacement_text': replacement_text
58 }
59
60
61def _BuildLocations( start_line, start_column, end_line, end_column ):

Calls

no outgoing calls

Tested by

no test coverage detected