summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
Diffstat (limited to 'script/core')
-rw-r--r--script/core/hover/table.lua2
-rw-r--r--script/core/semantic-tokens.lua7
2 files changed, 2 insertions, 7 deletions
diff --git a/script/core/hover/table.lua b/script/core/hover/table.lua
index e2c439af..4ad5e552 100644
--- a/script/core/hover/table.lua
+++ b/script/core/hover/table.lua
@@ -154,7 +154,7 @@ return function (source)
return 'table'
end
- local fields = vm.getRefs(source, '*')
+ local fields = vm.getFields(source)
local keys = getKeyMap(fields)
local optMap = getOptionalMap(fields)
diff --git a/script/core/semantic-tokens.lua b/script/core/semantic-tokens.lua
index ec19af1a..7f58014b 100644
--- a/script/core/semantic-tokens.lua
+++ b/script/core/semantic-tokens.lua
@@ -668,7 +668,6 @@ local Care = util.switch()
type = define.TokenTypes.keyword,
}
end)
- : getMap()
local function buildTokens(uri, results)
local tokens = {}
@@ -805,11 +804,7 @@ return function (uri, start, finish)
local results = {}
guide.eachSourceBetween(state.ast, start, finish, function (source) ---@async
- local method = Care[source.type]
- if not method then
- return
- end
- method(source, options, results)
+ Care(source.type, source, options, results)
await.delay()
end)