diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-09-27 18:30:59 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-09-27 18:30:59 +0800 |
commit | 001bf34c30977a7e0f74f275755fe38971039893 (patch) | |
tree | f56d7a2e7b63f87b8ddd0bff8d18f4de362bce60 | |
parent | bafa368f99964fd554249051a7d2aea6b95cd47b (diff) | |
download | lua-language-server-001bf34c30977a7e0f74f275755fe38971039893.zip |
fix some types
-rw-r--r-- | script/core/generic.lua | 2 | ||||
-rw-r--r-- | script/core/noder.lua | 1 | ||||
-rw-r--r-- | script/parser/guide.lua | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/script/core/generic.lua b/script/core/generic.lua index ce957a71..5b52a304 100644 --- a/script/core/generic.lua +++ b/script/core/generic.lua @@ -1,7 +1,7 @@ local guide = require 'parser.guide' local noder = require "core.noder" ----@class generic.value +---@class generic.value: parser.guide.object ---@field type string ---@field closure generic.closure ---@field proto parser.guide.object diff --git a/script/core/noder.lua b/script/core/noder.lua index 043a532a..814936ad 100644 --- a/script/core/noder.lua +++ b/script/core/noder.lua @@ -1237,6 +1237,7 @@ compileNodeMap = util.switch() : case 'in' : call(function (noders, id, source) local keys = source.keys + ---@type parser.guide.object[] local exps = source.exps if not keys or not exps then return diff --git a/script/parser/guide.lua b/script/parser/guide.lua index b65d9680..58981763 100644 --- a/script/parser/guide.lua +++ b/script/parser/guide.lua @@ -398,7 +398,7 @@ function m.getRoot(obj) end ---@param obj parser.guide.object ----@return string +---@return uri function m.getUri(obj) if obj.uri then return obj.uri |