diff options
Diffstat (limited to 'server/src/core')
-rw-r--r-- | server/src/core/value.lua | 3 | ||||
-rw-r--r-- | server/src/core/vm.lua | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/server/src/core/value.lua b/server/src/core/value.lua index 7b79d2ab..5426815f 100644 --- a/server/src/core/value.lua +++ b/server/src/core/value.lua @@ -233,7 +233,7 @@ function mt:getDeclarat() return nil end -function mt:addInfo(tp, source, var) +function mt:addInfo(tp, source) if source and not source.start then error('Miss start: ' .. table.dump(source)) end @@ -247,7 +247,6 @@ function mt:addInfo(tp, source, var) self._info[uri][#self._info[uri]+1] = { type = tp, source = source or getDefaultSource(), - var = var, } return self end diff --git a/server/src/core/vm.lua b/server/src/core/vm.lua index f8cd8284..65968396 100644 --- a/server/src/core/vm.lua +++ b/server/src/core/vm.lua @@ -72,7 +72,7 @@ function mt:createLocal(key, source, value) if source then self:addInfo(loc, 'local', source, value) if value then - value:addInfo('local', source, loc) + value:addInfo('local', source) end end self:setValue(loc, value, source) @@ -233,7 +233,7 @@ function mt:setValue(var, value, source) value = value or self:createValue('any', source) if source and source.start then self:addInfo(var, 'set', source, value) - value:addInfo('set', source, var) + value:addInfo('set', source) end var.value = value return value @@ -1313,7 +1313,7 @@ function mt:doLocalFunction(action) else local loc = self:createLocal(name[1], name) local func = self:buildFunction(action) - func:addInfo('local', name, loc) + func:addInfo('local', name) self:setValue(loc, func, name[#name]) end end |