summaryrefslogtreecommitdiff
path: root/script/vm/infer.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/infer.lua')
-rw-r--r--script/vm/infer.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/script/vm/infer.lua b/script/vm/infer.lua
index 1e531c1e..1c83faaa 100644
--- a/script/vm/infer.lua
+++ b/script/vm/infer.lua
@@ -234,6 +234,10 @@ local viewNodeSwitch;viewNodeSwitch = util.switch()
end
return ('fun(%s)%s'):format(argView, regView)
end)
+ : case 'doc.field.name'
+ : call(function (source, infer, uri)
+ return vm.viewKey(source, uri)
+ end)
---@class vm.node
---@field lastInfer? vm.infer