diff options
-rw-r--r-- | server/src/parser/ast.lua | 1 | ||||
-rw-r--r-- | server/src/vm/emmy.lua | 4 | ||||
-rw-r--r-- | server/src/vm/vm.lua | 3 |
3 files changed, 7 insertions, 1 deletions
diff --git a/server/src/parser/ast.lua b/server/src/parser/ast.lua index 3078631d..3b397c0d 100644 --- a/server/src/parser/ast.lua +++ b/server/src/parser/ast.lua @@ -1102,6 +1102,7 @@ local Defs = { DirtyEmmyName = function (pos) pushError { type = 'MISS_NAME', + level = 'warning', start = pos, finish = pos, } diff --git a/server/src/vm/emmy.lua b/server/src/vm/emmy.lua index b2f38693..6e5c2b13 100644 --- a/server/src/vm/emmy.lua +++ b/server/src/vm/emmy.lua @@ -8,6 +8,10 @@ function mt:doEmmyClass(action) action:set('emmy.class', class) end +function mt:doEmmyType(action) + local emmyMgr = self.emmyMgr +end + function mt:doEmmyIncomplete(action) self:instantSource(action) end diff --git a/server/src/vm/vm.lua b/server/src/vm/vm.lua index b89a8c51..e2fd6abc 100644 --- a/server/src/vm/vm.lua +++ b/server/src/vm/vm.lua @@ -1042,6 +1042,7 @@ function mt:doAction(action) elseif tp == 'emmyClass' then self:doEmmyClass(action) elseif tp == 'emmyType' then + self:doEmmyType(action) elseif tp == 'emmyAlias' then elseif tp == 'emmyParam' then elseif tp == 'emmyReturn' then @@ -1280,7 +1281,7 @@ return function (ast, lsp, uri) main = nil, env = nil, emmy = nil, - emmyMgr = lsp and lsp.emmyMgr or emmyMgr(), + emmyMgr = lsp and lsp.emmy or emmyMgr(), lsp = lsp, uri = uri or '', }, mt) |