summaryrefslogtreecommitdiff
path: root/script-beta/vm/eachRef.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script-beta/vm/eachRef.lua')
-rw-r--r--script-beta/vm/eachRef.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/script-beta/vm/eachRef.lua b/script-beta/vm/eachRef.lua
index 91aed10e..b8a2bce5 100644
--- a/script-beta/vm/eachRef.lua
+++ b/script-beta/vm/eachRef.lua
@@ -21,7 +21,7 @@ local function ofLocal(loc, callback)
end
local function ofGlobal(source, callback)
- local key = guide.getKeyName(source)
+ local key = vm.getKeyName(source)
local node = source.node
if node.tag == '_ENV' then
local uris = files.findGlobals(key)
@@ -36,7 +36,7 @@ local function ofGlobal(source, callback)
end
else
vm.eachField(node, function (src)
- if key == guide.getKeyName(src) then
+ if key == vm.getKeyName(src) then
callback(src)
end
end)
@@ -49,9 +49,9 @@ local function ofTableField(source, callback)
if not src then
return
end
- local key = guide.getKeyName(source)
+ local key = vm.getKeyName(source)
vm.eachField(src, function (src)
- if key == guide.getKeyName(src) then
+ if key == vm.getKeyName(src) then
callback(src)
end
end)
@@ -59,14 +59,14 @@ end
local function ofField(source, callback)
local parent = source.parent
- local key = guide.getKeyName(source)
+ local key = vm.getKeyName(source)
if parent.type == 'tablefield'
or parent.type == 'tableindex' then
ofTableField(parent, callback)
else
local node = parent.node
vm.eachField(node, function (src)
- if key == guide.getKeyName(src) then
+ if key == vm.getKeyName(src) then
callback(src)
end
end)