MCPcopy Index your code
hub / github.com/ternjs/tern_for_vim / tern_lookupArgumentHints

Function tern_lookupArgumentHints

script/tern.py:282–286  ·  view source on GitHub ↗
(fname, apos)

Source from the content-addressed store, hash-verified

280 if data: tern_echoWrap(data.get("type", ""))
281
282def tern_lookupArgumentHints(fname, apos):
283 curRow, curCol = vim.current.window.cursor
284 data = tern_runCommand({"type": "type", "preferFunction": True},
285 {"line": curRow - 1, "ch": apos})
286 if data: tern_echoWrap(data.get("type", ""),name=fname)
287
288def tern_lookupDefinition(cmd):
289 data = tern_runCommand("definition")

Callers

nothing calls this directly

Calls 2

tern_runCommandFunction · 0.85
tern_echoWrapFunction · 0.85

Tested by

no test coverage detected