summaryrefslogtreecommitdiff
path: root/script/core/diagnostics.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-03-30 16:38:30 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-03-30 16:38:30 +0800
commita60dfe909d8e9f47c09f7993e68fc6231e256485 (patch)
treee7285a779f75f61e853c53755a3d1f9532c033ca /script/core/diagnostics.lua
parent3b0440451a5ae78c25f17195db486a8f374e327f (diff)
downloadlua-language-server-a60dfe909d8e9f47c09f7993e68fc6231e256485.zip
#139 临时处理 emmyArray 的问题
Diffstat (limited to 'script/core/diagnostics.lua')
-rw-r--r--script/core/diagnostics.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/script/core/diagnostics.lua b/script/core/diagnostics.lua
index 3b11b818..499c5ffd 100644
--- a/script/core/diagnostics.lua
+++ b/script/core/diagnostics.lua
@@ -671,7 +671,13 @@ end
function mt:checkEmmyType(source, callback)
for _, tpsource in ipairs(source) do
- local name = tpsource[1]
+ -- TODO 临时决绝办法,重构后解决
+ local name
+ if tpsource.type == 'emmyArrayType' then
+ name = tpsource[1][1]
+ else
+ name = tpsource[1]
+ end
local class = self.vm.emmyMgr:eachClass(name, function (class)
if class.type == 'emmy.class' or class.type == 'emmy.alias' then
return class