summaryrefslogtreecommitdiff
path: root/script-beta/core/definition.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-10-19 17:26:20 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-10-19 17:26:20 +0800
commitf90a6366f4a4212e23612f17bffa506ffe25e030 (patch)
tree7501637fa4e0e4146673cbdca9ada8cde5bc1d08 /script-beta/core/definition.lua
parentee6e0c96e8f5d66d3cb81ef9641444564dea87b9 (diff)
downloadlua-language-server-f90a6366f4a4212e23612f17bffa506ffe25e030.zip
beta 支持 runtime.special
Diffstat (limited to 'script-beta/core/definition.lua')
-rw-r--r--script-beta/core/definition.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script-beta/core/definition.lua b/script-beta/core/definition.lua
index 8c308aaf..f2177fc9 100644
--- a/script-beta/core/definition.lua
+++ b/script-beta/core/definition.lua
@@ -80,6 +80,9 @@ local function convertIndex(source)
or source.type == 'boolean'
or source.type == 'number' then
local parent = source.parent
+ if not parent then
+ return
+ end
if parent.type == 'setindex'
or parent.type == 'getindex'
or parent.type == 'tableindex' then