diff options
author | Sewbacca <sebastian.kalus@kolabnow.com> | 2023-07-17 15:48:21 +0200 |
---|---|---|
committer | Sewbacca <sebastian.kalus@kolabnow.com> | 2023-07-17 15:48:21 +0200 |
commit | 76315ef4d25c1e81c3e2878236d2c09da681aa95 (patch) | |
tree | 0c5a62bb8835563c1bd85ed16b26fe8dd1cbe667 /script/vm | |
parent | 0c31e3027772f10f7a0b4d2e3892449018e195d8 (diff) | |
download | lua-language-server-76315ef4d25c1e81c3e2878236d2c09da681aa95.zip |
Resolve formatting
Resolve member naming
Diffstat (limited to 'script/vm')
-rw-r--r-- | script/vm/global.lua | 6 | ||||
-rw-r--r-- | script/vm/node.lua | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/script/vm/global.lua b/script/vm/global.lua index 687d53c8..6b61a82a 100644 --- a/script/vm/global.lua +++ b/script/vm/global.lua @@ -540,10 +540,10 @@ end ---@return boolean function vm.isUndefinedGlobal(src) local node = vm.compileNode(src) - if node._undefined_global == nil then - node._undefined_global = checkIsUndefinedGlobal(src) + if node.undefinedGlobal == nil then + node.undefinedGlobal = checkIsUndefinedGlobal(src) end - return node._undefined_global + return node.undefinedGlobal end ---@param source parser.object diff --git a/script/vm/node.lua b/script/vm/node.lua index 90ae839d..bc1dfcb1 100644 --- a/script/vm/node.lua +++ b/script/vm/node.lua @@ -15,7 +15,7 @@ vm.nodeCache = setmetatable({}, util.MODE_K) ---@field [integer] vm.node.object ---@field [vm.node.object] true ---@field fields? table<vm.node|string, vm.node> ----@field _undefined_global boolean? +---@field undefinedGlobal boolean? local mt = {} mt.__index = mt mt.id = 0 |