summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorunknown <luoxingyue@cn.net.ntes>2021-09-27 15:45:02 +0800
committerunknown <luoxingyue@cn.net.ntes>2021-09-27 15:45:02 +0800
commit0c8da1979087774eb1b352188762e7b3345c1089 (patch)
tree2b231f6093bcfc70c0e4cde5b228fe6a508c93d7 /script
parentd330c9020e299e9bddbadb12e3712679029febe6 (diff)
downloadlua-language-server-0c8da1979087774eb1b352188762e7b3345c1089.zip
remove comments
Diffstat (limited to 'script')
-rw-r--r--script/core/diagnostics/type-check.lua21
1 files changed, 0 insertions, 21 deletions
diff --git a/script/core/diagnostics/type-check.lua b/script/core/diagnostics/type-check.lua
index f021b1e5..357beee0 100644
--- a/script/core/diagnostics/type-check.lua
+++ b/script/core/diagnostics/type-check.lua
@@ -3,21 +3,7 @@ local guide = require 'parser.guide'
local vm = require 'vm'
local infer = require 'core.infer'
local await = require 'await'
--- local function hasTypeDoc(obj)
--- if obj.type == 'getlocal'
--- and obj.node
--- and obj.node.type == 'local'
--- and obj.node.bindDocs
--- and obj.node.bindDocs[1]
--- and (obj.node.bindDocs[1].type == 'doc.type'
--- or obj.node.bindDocs[1].type == 'doc.param') then
--- return true
--- end
--- return false
--- end
-local function hasInferType(obj)
-end
local function inTypes(param, args)
for _, v in ipairs(args) do
if param[1] == v[1] then
@@ -49,13 +35,6 @@ return function (uri, callback)
start = arg.start,
finish = arg.finish,
}
- -- ---检查传入参数有完整信息的情况
- -- elseif hasInferType(arg) then
- -- callArgsType[#callArgsType+1] = {
- -- type = arg.node.bindDocs[1].types,
- -- start = arg.start,
- -- finish = arg.finish,
- -- }
else
local infers = infer.searchInfers(arg)
if infers['_G'] or infer['_ENV'] then