diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-08-16 16:20:12 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-08-16 16:20:12 +0800 |
commit | 68f6df0181c8c5e499b571c0447af9203d3fd6d9 (patch) | |
tree | 6d44c1dfd98a57e01ca1482deb4cc8206ddb9c33 /script-beta/core/hover/table.lua | |
parent | 8fdeec14b4a90e1f15ed639ebc7b7b423e100424 (diff) | |
download | lua-language-server-68f6df0181c8c5e499b571c0447af9203d3fd6d9.zip |
整理代码
Diffstat (limited to 'script-beta/core/hover/table.lua')
-rw-r--r-- | script-beta/core/hover/table.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script-beta/core/hover/table.lua b/script-beta/core/hover/table.lua index d00440a7..5b086cd6 100644 --- a/script-beta/core/hover/table.lua +++ b/script-beta/core/hover/table.lua @@ -1,5 +1,6 @@ local vm = require 'vm' local util = require 'utility' +local guide = require 'parser.guide' local function getKey(src) local key = vm.getKeyName(src) @@ -118,7 +119,7 @@ return function (source) local intValue = true vm.eachField(source, function (src) local key, class, literal = getField(src) - classes[key] = guide.mergeInfers(class, classes[key]) + classes[key] = guide.mergeTypes {class, classes[key]} literals[key] = mergeLiteral(literal, literals[key]) if class ~= 'integer' or not literals[key] |