summaryrefslogtreecommitdiff
path: root/script/vm/node.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-12-16 15:56:24 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-12-16 15:56:24 +0800
commitabb5d1339f638e78bde32707261b2f255b64c9c1 (patch)
tree28bd5cfe43ceff38e941bd8b0e770c935fdd6edf /script/vm/node.lua
parent72a4342c054851b19b6b82105d34c2184414cd60 (diff)
downloadlua-language-server-abb5d1339f638e78bde32707261b2f255b64c9c1.zip
cleanup
Diffstat (limited to 'script/vm/node.lua')
-rw-r--r--script/vm/node.lua18
1 files changed, 2 insertions, 16 deletions
diff --git a/script/vm/node.lua b/script/vm/node.lua
index 2e408128..65d752df 100644
--- a/script/vm/node.lua
+++ b/script/vm/node.lua
@@ -20,7 +20,8 @@ mt.id = 0
mt.type = 'vm.node'
mt.optional = nil
mt.data = nil
-mt.resolved = nil
+mt.hasDefined = nil
+mt.originNode = nil
---@param node vm.node | vm.node.object
---@return vm.node
@@ -70,21 +71,6 @@ function mt:get(n)
return self[n]
end
-function mt:setData(k, v)
- if not self.data then
- self.data = {}
- end
- self.data[k] = v
-end
-
----@return any
-function mt:getData(k)
- if not self.data then
- return nil
- end
- return self.data[k]
-end
-
function mt:addOptional()
self.optional = true
end