diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-12-25 15:41:42 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-12-25 15:41:42 +0800 |
commit | 429364668ee08a6b28ba066dbcdef4125829c892 (patch) | |
tree | 9e6a625e61e37781ef7a2f331b9187b9e3c9077d /script-beta/vm/eachDef.lua | |
parent | 4131091ef31c260df3f9eeb4f62de8a02b444f72 (diff) | |
download | lua-language-server-429364668ee08a6b28ba066dbcdef4125829c892.zip |
支持 rawset
Diffstat (limited to 'script-beta/vm/eachDef.lua')
-rw-r--r-- | script-beta/vm/eachDef.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/script-beta/vm/eachDef.lua b/script-beta/vm/eachDef.lua index 19b0c0ed..6d389d18 100644 --- a/script-beta/vm/eachDef.lua +++ b/script-beta/vm/eachDef.lua @@ -37,7 +37,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) @@ -55,7 +55,7 @@ local function ofGlobal(source, callback) else vm.eachField(node, function (src) if vm.isSet(src) - and key == guide.getKeyName(src) then + and key == vm.getKeyName(src) then callback(src) end end) @@ -68,7 +68,7 @@ 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) @@ -76,7 +76,7 @@ local function ofField(source, callback) local node = parent.node vm.eachField(node, function (src) if vm.isSet(src) - and key == guide.getKeyName(src) then + and key == vm.getKeyName(src) then callback(src) end end) |