diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-02-25 16:32:40 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-02-25 16:32:40 +0800 |
commit | 32dcf712ce2b08a124718c519e43dd327a15d748 (patch) | |
tree | 06acc3d8c6759516e4cccad881a66b6915e37f80 /script/vm/node/compiler.lua | |
parent | ee408986c37082c981cb2689d71e4d77d4079a23 (diff) | |
download | lua-language-server-32dcf712ce2b08a124718c519e43dd327a15d748.zip |
cleanup
Diffstat (limited to 'script/vm/node/compiler.lua')
-rw-r--r-- | script/vm/node/compiler.lua | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/script/vm/node/compiler.lua b/script/vm/node/compiler.lua index 3a51fc4c..9d86768f 100644 --- a/script/vm/node/compiler.lua +++ b/script/vm/node/compiler.lua @@ -1,9 +1,9 @@ -local guide = require 'parser.guide' -local util = require 'utility' -local union = require 'vm.node.union' -local localID = require 'vm.local-id' -local literalMgr = require 'vm.literal-manager' -local globalMgr = require 'vm.global-manager' +local guide = require 'parser.guide' +local util = require 'utility' +local union = require 'vm.node.union' +local localID = require 'vm.local-id' +local localMgr = require 'vm.local-manager' +local globalMgr = require 'vm.global-manager' ---@class parser.object ---@field _compiledNodes boolean @@ -131,7 +131,7 @@ local compilerMap = util.switch() : case 'string' : case 'function' : call(function (source) - literalMgr.declareLiteral(source) + localMgr.declareLocal(source) m.setNode(source, source) end) : case 'local' @@ -206,7 +206,7 @@ function m.compileNode(source) if compiler then compiler(source) end - literalMgr.subscribeLiteral(source, source._node) + localMgr.subscribeLocal(source, source._node) if source._globalNode then m.setNode(source, source._globalNode) end |