diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-14 14:44:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-14 14:44:10 +0800 |
commit | 6172b5df67ca79abcc54a88121f3758a112f3a9d (patch) | |
tree | 5e527d38f103466dbd4825ff957977e4aad89b95 /script/parser/guide.lua | |
parent | d01289e9bf88270e593e48f9a454097592be974b (diff) | |
parent | f05b8a9b522989e83f28ce0511d5468d7300b40d (diff) | |
download | lua-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.lua | 4 |
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 |