summaryrefslogtreecommitdiff
path: root/server/src/vm/emmy.lua
blob: a9899477f22367e2101fbdf6787fe366f9aaef6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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