We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e2d3d4 commit 3c45587Copy full SHA for 3c45587
script/vm/compiler.lua
@@ -1180,8 +1180,20 @@ local compilerSwitch = util.switch()
1180
if bindDocs(source) then
1181
return
1182
end
1183
+ local locNode = vm.compileNode(source.node)
1184
+ if not source.value then
1185
+ vm.setNode(source, locNode)
1186
+ return
1187
+ end
1188
local valueNode = vm.compileNode(source.value)
1189
vm.setNode(source, valueNode)
1190
+ if locNode:getData 'hasDefined'
1191
+ and guide.isLiteral(source.value) then
1192
1193
+ vm.getNode(source):narrow(guide.getUri(source), source.value.type)
1194
+ else
1195
+ vm.setNode(source, valueNode)
1196
1197
end)
1198
: case 'getlocal'
1199
---@async
0 commit comments