summaryrefslogtreecommitdiff
path: root/script/core/semantic-tokens.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/semantic-tokens.lua')
-rw-r--r--script/core/semantic-tokens.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/script/core/semantic-tokens.lua b/script/core/semantic-tokens.lua
index 066ef68c..552e17d4 100644
--- a/script/core/semantic-tokens.lua
+++ b/script/core/semantic-tokens.lua
@@ -17,7 +17,7 @@ local Care = util.switch()
return
end
local isLib = vm.isGlobalLibraryName(source[1])
- local isFunc = infer.hasType(source, 'function')
+ local isFunc = infer.getInfer(source):hasFunction()
local type = isFunc and define.TokenTypes['function'] or define.TokenTypes.variable
local modifier = isLib and define.TokenModifiers.defaultLibrary or define.TokenModifiers.static
@@ -66,7 +66,7 @@ local Care = util.switch()
return
end
end
- if infer.hasType(source, 'function') then
+ if infer.getInfer(source):hasFunction() then
results[#results+1] = {
start = source.start,
finish = source.finish,
@@ -179,7 +179,7 @@ local Care = util.switch()
end
end
-- 6. References to other functions
- if infer.hasType(loc, 'function') then
+ if infer.getInfer(loc):hasFunction() then
results[#results+1] = {
start = source.start,
finish = source.finish,