summaryrefslogtreecommitdiff
path: root/script/parser/guide.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-28 16:28:33 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-28 16:28:33 +0800
commitdf4fb9b5157cbf11f3fc5f6041afef657f0acfba (patch)
tree84f65cb0adff35c8e2563d321dc99530010c5a6b /script/parser/guide.lua
parent7de3d6851a41d993b1f84eddd3331067a82e8878 (diff)
downloadlua-language-server-df4fb9b5157cbf11f3fc5f6041afef657f0acfba.zip
diag `missing-return`
Diffstat (limited to 'script/parser/guide.lua')
-rw-r--r--script/parser/guide.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index 1ba28d4d..83c84964 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -1276,4 +1276,10 @@ function m.isBasicType(str)
return basicTypeMap[str] == true
end
+---@param source parser.object
+---@return boolean
+function m.isBlockType(source)
+ return blockTypes[source.type] == true
+end
+
return m