diff options
Diffstat (limited to 'server/src/vm/emmy.lua')
-rw-r--r-- | server/src/vm/emmy.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/server/src/vm/emmy.lua b/server/src/vm/emmy.lua new file mode 100644 index 00000000..a9899477 --- /dev/null +++ b/server/src/vm/emmy.lua @@ -0,0 +1,16 @@ +local mt = require 'vm.manager' + +function mt:doEmmyClass(action) + if not self.lsp then + return + end + local emmyMgr = self.lsp.emmyMgr + local class = action[1] + local parent = action[2] + self:instantSource(class) + if parent then + self:instantSource(parent) + end + local emmyClass = emmyMgr:addClass(class, parent) + self.emmy = emmyClass +end |