fixup! refactor(_utils.ts): all public methods are just adapters
This commit is contained in:
parent
ff209db23e
commit
ac457d0c6d
2 changed files with 3 additions and 4 deletions
|
|
@ -9,8 +9,7 @@ local queries = {
|
|||
(method_declaration name: (field_identifier) @_name)]
|
||||
]],
|
||||
package = [[
|
||||
((package_clause
|
||||
(package_identifier)) @_name)
|
||||
(package_identifier) @_name
|
||||
]],
|
||||
interface = [[
|
||||
(type_spec
|
||||
|
|
@ -112,7 +111,7 @@ function ts.get_package_under_cursor(bufnr)
|
|||
end
|
||||
|
||||
---@param bufnr integer
|
||||
function ts.get_interface_inder_cursor(bufnr)
|
||||
function ts.get_interface_under_cursor(bufnr)
|
||||
return do_stuff(bufnr, "type_declaration", queries.interface)
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ local function generate(bufnr)
|
|||
return cmt
|
||||
end
|
||||
|
||||
ok, res = pcall(ts.get_interface_inder_cursor, bufnr)
|
||||
ok, res = pcall(ts.get_interface_under_cursor, bufnr)
|
||||
if ok then
|
||||
cmt = cmt .. res.name .. " "
|
||||
return cmt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue