summaryrefslogtreecommitdiff
path: root/script/parser/guide.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-14 14:44:10 +0800
committerGitHub <noreply@github.com>2020-12-14 14:44:10 +0800
commit6172b5df67ca79abcc54a88121f3758a112f3a9d (patch)
tree5e527d38f103466dbd4825ff957977e4aad89b95 /script/parser/guide.lua
parentd01289e9bf88270e593e48f9a454097592be974b (diff)
parentf05b8a9b522989e83f28ce0511d5468d7300b40d (diff)
downloadlua-language-server-6172b5df67ca79abcc54a88121f3758a112f3a9d.zip
Merge pull request #296 from uhziel/diagnostic-undefined-field
添加检查"未定义的 field"Diagnostic undefined field
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