diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-12-24 14:42:16 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-12-24 14:42:16 +0800 |
commit | f60fffa9afd4c799c449065cbc5beba68e2bdcb1 (patch) | |
tree | 90218eee67448fed9834983b8cb1a094c40e46cc /script-beta/vm/vm.lua | |
parent | e3874a12dd5a3273f0d2266134c8764182fc42e3 (diff) | |
download | lua-language-server-f60fffa9afd4c799c449065cbc5beba68e2bdcb1.zip |
分离 eachRef 与 eachDef
Diffstat (limited to 'script-beta/vm/vm.lua')
-rw-r--r-- | script-beta/vm/vm.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/script-beta/vm/vm.lua b/script-beta/vm/vm.lua index 06ffc172..863686d8 100644 --- a/script-beta/vm/vm.lua +++ b/script-beta/vm/vm.lua @@ -59,6 +59,18 @@ function m.getLinkUris(call) end end +function m.isSet(src) + local tp = src.type + return tp == 'setglobal' + or tp == 'local' + or tp == 'setlocal' + or tp == 'setfield' + or tp == 'setmethod' + or tp == 'setindex' + or tp == 'tablefield' + or tp == 'tableindex' +end + m.cacheTracker = setmetatable({}, { __mode = 'kv' }) --- 刷新缓存 |