From df4fb9b5157cbf11f3fc5f6041afef657f0acfba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 28 Jun 2022 16:28:33 +0800 Subject: diag `missing-return` --- script/parser/guide.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'script/parser/guide.lua') 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 -- cgit v1.2.3