summaryrefslogtreecommitdiff
path: root/script/vm/compiler.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-18 01:07:30 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-18 01:07:30 +0800
commitdca751cf110a96a351c8cadc049ac364dc41a4dd (patch)
tree785d41633d4ee6bfa3e97ec25043c5cedbc6da28 /script/vm/compiler.lua
parent04c671114d1d4c4bcfbad74c8341b24844552865 (diff)
downloadlua-language-server-dca751cf110a96a351c8cadc049ac364dc41a4dd.zip
#1255
diagnostic for enum
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r--script/vm/compiler.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index d94dd1f4..04a4f0c5 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -32,10 +32,6 @@ local function bindDocs(source)
vm.setNode(source, vm.compileNode(doc))
return true
end
- if doc.type == 'doc.enum' then
- vm.setNode(source, vm.compileNode(doc))
- return true
- end
if doc.type == 'doc.param' then
local node = vm.compileNode(doc)
if doc.optional then
@@ -1586,6 +1582,10 @@ local compilerSwitch = util.switch()
: call(function (source)
vm.setNode(source, vm.compileNode(source.parent))
end)
+ : case 'doc.enum.name'
+ : call(function (source)
+ vm.setNode(source, vm.compileNode(source.parent))
+ end)
: case 'doc.field'
: call(function (source)
if not source.extends then