diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-09-22 15:54:44 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-09-22 15:54:44 +0800 |
commit | b7f7789e46ab8c67d25704be696a1523762b1d80 (patch) | |
tree | bfbe4435180d2304487d28655c3fbbf987793714 /script/vm | |
parent | a11c1e47a1bbe1004333143431f901ab8ecde4dd (diff) | |
download | lua-language-server-b7f7789e46ab8c67d25704be696a1523762b1d80.zip |
update
Diffstat (limited to 'script/vm')
-rw-r--r-- | script/vm/getLinks.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/script/vm/getLinks.lua b/script/vm/getLinks.lua index 161396f6..d2332504 100644 --- a/script/vm/getLinks.lua +++ b/script/vm/getLinks.lua @@ -6,12 +6,12 @@ local files = require 'files' local function getFileLinks(uri) local ws = require 'workspace' local links = {} - local ast = files.getState(uri) - if not ast then + local state = files.getState(uri) + if not state then return links end tracy.ZoneBeginN('getFileLinks') - guide.eachSpecialOf(ast.ast, 'require', function (source) + guide.eachSpecialOf(state.ast, 'require', function (source) local call = source.parent if not call or call.type ~= 'call' then return |