diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-19 11:08:53 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-19 11:08:53 +0800 |
commit | b23a9a5f34874916ea402e6141f426f00294a334 (patch) | |
tree | 61a70ac5ecd3035da7fbbbd8c3c7f16ac5d31df4 /server/src/vm | |
parent | b44d1495ae952dab235b9a79cabbeb56be30da8f (diff) | |
download | lua-language-server-b23a9a5f34874916ea402e6141f426f00294a334.zip |
修正一些bug
Diffstat (limited to 'server/src/vm')
-rw-r--r-- | server/src/vm/vm.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/vm/vm.lua b/server/src/vm/vm.lua index 0c952765..2a81372b 100644 --- a/server/src/vm/vm.lua +++ b/server/src/vm/vm.lua @@ -911,6 +911,7 @@ function mt:doFunction(action) self:instantSource(action) local name = action.name if name then + self:instantSource(name) if name.type == 'simple' then local parent = self:getSimple(name, -2) if name[#name-1].type == ':' then @@ -969,8 +970,9 @@ function mt:doLocalFunction(action) self:instantSource(action) local name = action.name if name then + self:instantSource(name) if name.type == 'simple' then - self:buildFunction(action) + self:doFunction(action) else local loc = self:createLocal(name[1], name) local func = self:buildFunction(action) |