MCPcopy
hub / github.com/ternjs/tern_for_vim / tern_bufferSlice

Function tern_bufferSlice

script/tern.py:114–119  ·  view source on GitHub ↗
(buf, pos, end)

Source from the content-addressed store, hash-verified

112 return filename[len(tern_projectDir()) + 1:]
113
114def tern_bufferSlice(buf, pos, end):
115 text = ""
116 while pos < end:
117 text += buf[pos] + "\n"
118 pos += 1
119 return text
120
121def tern_fullBuffer():
122 return {"type": "full",

Callers 2

tern_fullBufferFunction · 0.85
tern_bufferFragmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected