summaryrefslogtreecommitdiff
path: root/script/vm/compiler.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r--script/vm/compiler.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index 42cc1aa2..66492a5e 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -1076,18 +1076,30 @@ local compilerSwitch = util.switch()
end)
: case 'doc.field'
: call(function (source)
+ if not source.extends then
+ return
+ end
vm.setNode(source, vm.compileNode(source.extends))
end)
: case 'doc.type.field'
: call(function (source)
+ if not source.extends then
+ return
+ end
vm.setNode(source, vm.compileNode(source.extends))
end)
: case 'doc.param'
: call(function (source)
+ if not source.extends then
+ return
+ end
vm.setNode(source, vm.compileNode(source.extends))
end)
: case 'doc.vararg'
: call(function (source)
+ if not source.vararg then
+ return
+ end
vm.setNode(source, vm.compileNode(source.vararg))
end)
: case '...'