summaryrefslogtreecommitdiff
path: root/script/parser/guide.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/parser/guide.lua')
-rw-r--r--script/parser/guide.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index 90d09f7a..5fcfc0f3 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -1242,6 +1242,10 @@ function m.isDoc(source)
return source.type:sub(1, 4) == 'doc.'
end
+function m.isDocClass(source)
+ return source.type == 'doc.class'
+end
+
--- 根据函数的调用参数,获取:调用,参数索引
function m.getCallAndArgIndex(callarg)
local callargs = callarg.parent