diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-08-09 14:13:23 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-08-09 14:13:23 +0800 |
commit | 670dc93567d88e8d2ef288dc3c266d591c90beb5 (patch) | |
tree | c36a934905df5be0bf2b4a778dd583362cf7b68f /script/core | |
parent | b85fbef97096a81ab206ec2def71ac22fb4c87c9 (diff) | |
download | lua-language-server-670dc93567d88e8d2ef288dc3c266d591c90beb5.zip |
cleanup
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/code-action.lua | 2 | ||||
-rw-r--r-- | script/core/diagnostics/unused-function.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/script/core/code-action.lua b/script/core/code-action.lua index ec43d166..c7727487 100644 --- a/script/core/code-action.lua +++ b/script/core/code-action.lua @@ -377,7 +377,7 @@ local function checkSwapParams(results, uri, start, finish) node = text:sub(source.parent.node.start, source.parent.node.finish) elseif source.type == 'funcargs' then local var = source.parent.parent - if vm.isSet(var) then + if guide.isSet(var) then node = text:sub(var.start, var.finish) else node = lang.script.SYMBOL_ANONYMOUS diff --git a/script/core/diagnostics/unused-function.lua b/script/core/diagnostics/unused-function.lua index cf5d47b5..523bca6e 100644 --- a/script/core/diagnostics/unused-function.lua +++ b/script/core/diagnostics/unused-function.lua @@ -44,7 +44,7 @@ return function (uri, callback) local hasGet local refs = vm.getRefs(source) for _, src in ipairs(refs) do - if vm.isGet(src) then + if guide.isGet(src) then local func = guide.getParentFunction(src) if not checkFunction(func) then hasGet = true |