summaryrefslogtreecommitdiff
path: root/script/vm/getLinks.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/getLinks.lua')
-rw-r--r--script/vm/getLinks.lua6
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