summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
Diffstat (limited to 'script/core')
-rw-r--r--script/core/code-action.lua2
-rw-r--r--script/core/diagnostics/unused-function.lua2
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