diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-29 17:25:37 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-29 17:25:37 +0800 |
commit | bbdd2711dec66a90d712673acf1ff453581d1c51 (patch) | |
tree | 6816cf31963ce40612aa09f8542acffdcbad1c47 /server/src/core | |
parent | 119d438c81d10768cd19eba2f6eedef823566eca (diff) | |
download | lua-language-server-bbdd2711dec66a90d712673acf1ff453581d1c51.zip |
写错了
Diffstat (limited to 'server/src/core')
-rw-r--r-- | server/src/core/vm.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/src/core/vm.lua b/server/src/core/vm.lua index cda8422e..a0c8df26 100644 --- a/server/src/core/vm.lua +++ b/server/src/core/vm.lua @@ -943,13 +943,14 @@ function mt:getSimple(simple, mode) local index = self:getIndex(child) if mode == 'value' or i < #simple then field = self:getField(value, index, obj) or self:createField(value, index, obj) + field.parentValue = value value = self:getValue(field) self:addInfo(field, 'get', obj) else field = self:createField(value, index, obj) + field.parentValue = value value = self:getValue(field) end - field.parentValue = value field.parent = lastField if obj[1].type == 'string' then parentName = ('%s[%q]'):format(parentName, index) @@ -961,13 +962,14 @@ function mt:getSimple(simple, mode) elseif tp == 'name' then if mode == 'value' or i < #simple then field = self:getField(value, obj[1], obj) or self:createField(value, obj[1], obj) + field.parentValue = value value = self:getValue(field) self:addInfo(field, 'get', obj) else field = self:createField(value, obj[1], obj) + field.parentValue = value value = self:getValue(field) end - field.parentValue = value field.parent = lastField lastField = field obj.object = object |