diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-12-22 22:09:22 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-12-22 22:09:22 +0800 |
commit | 21030f41d13e00a4a123f8e499f3415c4b8498dc (patch) | |
tree | 2f9b7ee4a986a94dad1edee4e322f31429f6aa66 /script/vm/global.lua | |
parent | 235a3049c63836b686d1b81fe6bb4775b4021449 (diff) | |
download | lua-language-server-21030f41d13e00a4a123f8e499f3415c4b8498dc.zip |
cleanup
Diffstat (limited to 'script/vm/global.lua')
-rw-r--r-- | script/vm/global.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/script/vm/global.lua b/script/vm/global.lua index 5ce7c852..5022ca79 100644 --- a/script/vm/global.lua +++ b/script/vm/global.lua @@ -514,11 +514,11 @@ local function compileSelf(source) if not node then return end - local fields = vm.getLocalFields(source, false) + local fields = vm.getVariableFields(source, false) if not fields then return end - local nodeLocalID = vm.getLocalID(node) + local nodeLocalID = vm.getVariableID(node) local globalNode = node._globalNode if not nodeLocalID and not globalNode then return @@ -529,7 +529,7 @@ local function compileSelf(source) if key then if nodeLocalID then local myID = nodeLocalID .. vm.ID_SPLITE .. key - vm.insertLocalID(myID, field) + vm.insertVariableID(myID, field) end if globalNode then local myID = globalNode:getName() .. vm.ID_SPLITE .. key |