diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-07-14 18:46:12 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-07-14 18:46:12 +0800 |
commit | 4a0a07f81df346170bc71ca83b154448faf1f586 (patch) | |
tree | dfe3f77b680e5373dca52713fd799e109bcb905f /script/provider/build-meta.lua | |
parent | b154ddeb48450cdb78a589abf3705d3f9df758d7 (diff) | |
download | lua-language-server-4a0a07f81df346170bc71ca83b154448faf1f586.zip |
bind source for class
Diffstat (limited to 'script/provider/build-meta.lua')
-rw-r--r-- | script/provider/build-meta.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/script/provider/build-meta.lua b/script/provider/build-meta.lua index 2c4a29c2..baabe39c 100644 --- a/script/provider/build-meta.lua +++ b/script/provider/build-meta.lua @@ -105,6 +105,7 @@ local function buildText(root, class) lines[#lines+1] = ('---@field %s %s'):format(field.name, field.typeName) end + lines[#lines+1] = ('---@source %s'):format(class.location:gsub('#', ':')) local name = mergeString(root, class.namespace, class.name) lines[#lines+1] = ('%s = {}'):format(name) lines[#lines+1] = '' |