summaryrefslogtreecommitdiff
path: root/script/vm/local-id.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-07 17:23:07 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-07 17:23:07 +0800
commit07bdb57b7358bc62630c6cdaaacd68b151aa6d08 (patch)
tree875d13f9faee60b1de5eeeff31c050e0063de0dc /script/vm/local-id.lua
parentba6cecf5d9f233dbdcfe5b721e9794658f74e056 (diff)
downloadlua-language-server-07bdb57b7358bc62630c6cdaaacd68b151aa6d08.zip
#1192 don't search local in simple
use the methods provided by `local-id` to avoid wasting on `gets`
Diffstat (limited to 'script/vm/local-id.lua')
-rw-r--r--script/vm/local-id.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/vm/local-id.lua b/script/vm/local-id.lua
index bb12a927..e0c8770d 100644
--- a/script/vm/local-id.lua
+++ b/script/vm/local-id.lua
@@ -21,6 +21,7 @@ local compileSwitch = util.switch()
compileLocalID(ref)
end
end)
+ : case 'setlocal'
: case 'getlocal'
: call(function (source)
source._localID = ('%d'):format(source.node.start)