summaryrefslogtreecommitdiff
path: root/script/vm/generic.lua
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2022-03-05 04:24:39 +0800
committersumneko <sumneko@hotmail.com>2022-03-05 04:24:39 +0800
commitba84c67f8ebdf42d429eec829067233db13a0f0b (patch)
tree32e9b91bf9ac0d110d631c278824a47c333e775f /script/vm/generic.lua
parent513023b9ee1d4af55e43d530fe5ed1092beb79ce (diff)
downloadlua-language-server-ba84c67f8ebdf42d429eec829067233db13a0f0b.zip
update
Diffstat (limited to 'script/vm/generic.lua')
-rw-r--r--script/vm/generic.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/script/vm/generic.lua b/script/vm/generic.lua
new file mode 100644
index 00000000..8b298508
--- /dev/null
+++ b/script/vm/generic.lua
@@ -0,0 +1,16 @@
+---@class vm.node.generic
+---@field parent vm.node.generic-manager
+---@field proto parser.object
+local mt = {}
+mt.__index = mt
+mt.type = 'generic'
+
+---@param parent vm.node.generic-manager
+---@param proto parser.object
+return function (parent, proto)
+ local generic = setmetatable({
+ parent = parent,
+ proto = proto,
+ }, mt)
+ return generic
+end