summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-14 15:38:20 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-14 15:38:45 +0800
commit1a682cdf32775f1e21bc76a17e168df67acb35c2 (patch)
treee8aeffbce063f866ea43bdf039bba4b676273025
parentd4f2ccb12e740fa086892714a58d70bc3d832cfa (diff)
downloadlua-language-server-1a682cdf32775f1e21bc76a17e168df67acb35c2.zip
add source to methods
-rw-r--r--script/provider/build-meta.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/provider/build-meta.lua b/script/provider/build-meta.lua
index 090b7b04..f0973228 100644
--- a/script/provider/build-meta.lua
+++ b/script/provider/build-meta.lua
@@ -66,6 +66,7 @@ local function addMethod(lines, name, method)
return
end
addComments(lines, method.comment)
+ lines[#lines+1] = ('---@source %s'):format(method.location:gsub('#', ':'))
local params = {}
for _, param in ipairs(method.params) do
lines[#lines+1] = ('---@param %s %s'):format(param.name, param.typeName)