diff options
author | sumneko <sumneko@hotmail.com> | 2022-03-05 04:24:39 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2022-03-05 04:24:39 +0800 |
commit | ba84c67f8ebdf42d429eec829067233db13a0f0b (patch) | |
tree | 32e9b91bf9ac0d110d631c278824a47c333e775f /script/vm/generic.lua | |
parent | 513023b9ee1d4af55e43d530fe5ed1092beb79ce (diff) | |
download | lua-language-server-ba84c67f8ebdf42d429eec829067233db13a0f0b.zip |
update
Diffstat (limited to 'script/vm/generic.lua')
-rw-r--r-- | script/vm/generic.lua | 16 |
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 |