diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-03-30 16:38:30 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-03-30 16:38:30 +0800 |
commit | a60dfe909d8e9f47c09f7993e68fc6231e256485 (patch) | |
tree | e7285a779f75f61e853c53755a3d1f9532c033ca /script/core/diagnostics.lua | |
parent | 3b0440451a5ae78c25f17195db486a8f374e327f (diff) | |
download | lua-language-server-a60dfe909d8e9f47c09f7993e68fc6231e256485.zip |
#139 临时处理 emmyArray 的问题
Diffstat (limited to 'script/core/diagnostics.lua')
-rw-r--r-- | script/core/diagnostics.lua | 8 |
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 |