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

Function GetBufferFilepath

python/ycm/vimsupport.py:166–173  ·  view source on GitHub ↗
( buffer_object )

Source from the content-addressed store, hash-verified

164
165
166def GetBufferFilepath( buffer_object ):
167 if buffer_object.name:
168 return os.path.abspath( ToUnicode( buffer_object.name ) )
169 # Buffers that have just been created by a command like :enew don't have any
170 # buffer name so we use the buffer number for that.
171 name = os.path.join( GetCurrentDirectory(), str( buffer_object.number ) )
172 MADEUP_FILENAME_TO_BUFFER_NUMBER[ name ] = buffer_object.number
173 return name
174
175
176def GetCurrentBufferNumber():

Callers 4

GetCurrentBufferFilepathFunction · 0.85
RangeVisibleInBufferFunction · 0.85
TryJumpLocationInTabFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected