summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2019-04-18 18:26:56 +0800
committersumneko <sumneko@hotmail.com>2019-04-18 18:26:56 +0800
commitad589216b9c5bcd1fe32599004e88675311c0c99 (patch)
tree519d4dd9e49650783a87b9a3ab475b3226881a5a /server/src
parentf10a4b0a856ef1b4fd29d6f5229cb3f11806ba3e (diff)
downloadlua-language-server-ad589216b9c5bcd1fe32599004e88675311c0c99.zip
修正泄露
Diffstat (limited to 'server/src')
-rw-r--r--server/src/parser/ast.lua1
-rw-r--r--server/src/vm/emmy.lua4
-rw-r--r--server/src/vm/vm.lua3
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)