summaryrefslogtreecommitdiff
path: root/script/vm
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-20 17:43:58 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-20 17:43:58 +0800
commitf7399c6206378b76c87a7386707cf8e24d5a98ac (patch)
treeb193931413091f363bee9d35a506c8dc4b359dc8 /script/vm
parentea94ae75080956dd49608d2a870f45f4c6ff82d8 (diff)
downloadlua-language-server-f7399c6206378b76c87a7386707cf8e24d5a98ac.zip
`cast-field-type`
Diffstat (limited to 'script/vm')
-rw-r--r--script/vm/compiler.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index 3e601943..b85ad8e8 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -1375,7 +1375,7 @@ local compilerSwitch = util.switch()
end
if not hasMarkDoc then
- vm.compileByParentNode(source.parent, guide.getKeyName(source), false, function (src)
+ vm.compileByParentNode(source.node, guide.getKeyName(source), false, function (src)
if src.type == 'doc.field'
or src.type == 'doc.type.field' then
vm.setNode(source, vm.compileNode(src))