diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-07 17:23:07 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-07 17:23:07 +0800 |
commit | 07bdb57b7358bc62630c6cdaaacd68b151aa6d08 (patch) | |
tree | 875d13f9faee60b1de5eeeff31c050e0063de0dc /script/vm/local-id.lua | |
parent | ba6cecf5d9f233dbdcfe5b721e9794658f74e056 (diff) | |
download | lua-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.lua | 1 |
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) |