diff options
Diffstat (limited to 'script/vm/manager.lua')
-rw-r--r-- | script/vm/manager.lua | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/script/vm/manager.lua b/script/vm/manager.lua deleted file mode 100644 index c75b777f..00000000 --- a/script/vm/manager.lua +++ /dev/null @@ -1,29 +0,0 @@ - -local files = require 'files' -local globalManager = require 'vm.global-manager' - ----@alias vm.object parser.object | vm.global | vm.generic - ----@class vm.state -local m = {} -for uri in files.eachFile() do - local state = files.getState(uri) - if state then - globalManager.compileAst(state.ast) - end -end - -files.watch(function (ev, uri) - if ev == 'update' then - globalManager.dropUri(uri) - local state = files.getState(uri) - if state then - globalManager.compileAst(state.ast) - end - end - if ev == 'remove' then - globalManager.dropUri(uri) - end -end) - -return m |