diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-23 02:24:23 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-23 02:24:23 +0800 |
commit | e0e3c9ab6b69b16b8949f93f309461f298038fa4 (patch) | |
tree | b15be4999b0f212d502a45210bd7c3b2f426fb63 /script/vm | |
parent | ab171866489b903a74ab1da735ff5c35f78e9919 (diff) | |
download | lua-language-server-e0e3c9ab6b69b16b8949f93f309461f298038fa4.zip |
update
Diffstat (limited to 'script/vm')
-rw-r--r-- | script/vm/infer.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/script/vm/infer.lua b/script/vm/infer.lua index 35a2f59f..e789214a 100644 --- a/script/vm/infer.lua +++ b/script/vm/infer.lua @@ -176,13 +176,16 @@ local viewNodeSwitch = util.switch() ---@class vm.node ---@field lastInfer? vm.infer ----@param source parser.object | vm.node +---@param source vm.object | vm.node ---@return vm.infer function vm.getInfer(source) + ---@type vm.node local node if source.type == 'vm.node' then + ---@cast source vm.node node = source else + ---@cast source vm.object node = vm.compileNode(source) end if node.lastInfer then |