diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-03-30 02:42:02 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-03-30 02:42:02 +0800 |
commit | 635b266a9188cf87ae856a21308347c113c52250 (patch) | |
tree | 76e9d80067b2b602f0b686cf25f655a3da871f09 /script/core/diagnostics | |
parent | baa04101dfe6ce82046ec53eb7b52cedb02876ba (diff) | |
download | lua-language-server-635b266a9188cf87ae856a21308347c113c52250.zip |
update
Diffstat (limited to 'script/core/diagnostics')
-rw-r--r-- | script/core/diagnostics/type-check.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/script/core/diagnostics/type-check.lua b/script/core/diagnostics/type-check.lua index cbdb40a1..ebfffea0 100644 --- a/script/core/diagnostics/type-check.lua +++ b/script/core/diagnostics/type-check.lua @@ -17,7 +17,7 @@ local typeNameMap = { ['doc.class.name'] = true, ['doc.alias.name'] = true, ['doc.type.name'] = true, - ['doc.type.enum'] = true, + ['doc.type.string'] = true, ['doc.resume'] = true, } @@ -165,7 +165,7 @@ local function getParamTypes(arg) for _, argDef in ipairs(argDefs) do if argDef.type == 'doc.class.name' or argDef.type == 'doc.type.name' - or argDef.type == 'doc.type.enum' + or argDef.type == 'doc.type.string' or argDef.type == 'doc.type.ltable' then types[#types+1] = argDef end @@ -184,7 +184,7 @@ local function getParamTypes(arg) type = 'nil' } end - elseif argDef.type == 'doc.type.enum' + elseif argDef.type == 'doc.type.string' or argDef.type == 'doc.type.ltable' then types[#types+1] = argDef ---变长参数 @@ -316,7 +316,7 @@ local function getArgsInfo(uri, callArgs) -- } -- elseif def.type == 'doc.class.name' -- or def.type == 'doc.type.name' - -- or def.type == 'doc.type.enum' + -- or def.type == 'doc.type.string' -- or def.type == 'doc.type.ltable' then -- if def[1] then -- if not types.typeMap[def[1]] then |