summaryrefslogtreecommitdiff
path: root/server-beta/src/parser/guide.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-05 21:55:17 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-05 21:55:17 +0800
commitfb5ce900c0f09f5de2e3d8251da6bde09d4a1c71 (patch)
treeab792a724230f69a696aa9fb2e90b6c601698350 /server-beta/src/parser/guide.lua
parent30a88ee1b1f60e657393a16e55cddae9cb01a62a (diff)
downloadlua-language-server-fb5ce900c0f09f5de2e3d8251da6bde09d4a1c71.zip
更新诊断
Diffstat (limited to 'server-beta/src/parser/guide.lua')
-rw-r--r--server-beta/src/parser/guide.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server-beta/src/parser/guide.lua b/server-beta/src/parser/guide.lua
index 952fa3c6..f4fd387c 100644
--- a/server-beta/src/parser/guide.lua
+++ b/server-beta/src/parser/guide.lua
@@ -320,6 +320,9 @@ function m.eachSourceType(ast, type, callback)
end
mark[source] = true
local tp = source.type
+ if not tp then
+ return
+ end
local myCache = cache[tp]
if not myCache then
myCache = {}