@@ -126,6 +126,7 @@ vm.unarySwich = util.switch()
126126 if result == nil then
127127 vm .setNode (source , vm .declareGlobal (' type' , ' boolean' ))
128128 else
129+ --- @diagnostic disable-next-line : missing-fields
129130 vm .setNode (source , {
130131 type = ' boolean' ,
131132 start = source .start ,
@@ -155,6 +156,7 @@ vm.unarySwich = util.switch()
155156 vm .setNode (source , node or vm .declareGlobal (' type' , ' number' ))
156157 end
157158 else
159+ --- @diagnostic disable-next-line : missing-fields
158160 vm .setNode (source , {
159161 type = ' number' ,
160162 start = source .start ,
@@ -171,6 +173,7 @@ vm.unarySwich = util.switch()
171173 local node = vm .runOperator (' bnot' , source [1 ])
172174 vm .setNode (source , node or vm .declareGlobal (' type' , ' integer' ))
173175 else
176+ --- @diagnostic disable-next-line : missing-fields
174177 vm .setNode (source , {
175178 type = ' integer' ,
176179 start = source .start ,
@@ -223,6 +226,7 @@ vm.binarySwitch = util.switch()
223226 if source .op .type == ' ~=' then
224227 result = not result
225228 end
229+ --- @diagnostic disable-next-line : missing-fields
226230 vm .setNode (source , {
227231 type = ' boolean' ,
228232 start = source .start ,
@@ -247,6 +251,7 @@ vm.binarySwitch = util.switch()
247251 or op == ' &' and a & b
248252 or op == ' |' and a | b
249253 or op == ' ~' and a ~ b
254+ --- @diagnostic disable-next-line : missing-fields
250255 vm .setNode (source , {
251256 type = ' integer' ,
252257 start = source .start ,
@@ -285,6 +290,7 @@ vm.binarySwitch = util.switch()
285290 or op == ' %' and a % b
286291 or op == ' //' and a // b
287292 or op == ' ^' and a ^ b
293+ --- @diagnostic disable-next-line : missing-fields
288294 vm .setNode (source , {
289295 type = (op == ' //' or math.type (result ) == ' integer' ) and ' integer' or ' number' ,
290296 start = source .start ,
@@ -364,6 +370,7 @@ vm.binarySwitch = util.switch()
364370 end
365371 end
366372 end
373+ --- @diagnostic disable-next-line : missing-fields
367374 vm .setNode (source , {
368375 type = ' string' ,
369376 start = source .start ,
@@ -407,6 +414,7 @@ vm.binarySwitch = util.switch()
407414 or op == ' <' and a < b
408415 or op == ' >=' and a >= b
409416 or op == ' <=' and a <= b
417+ --- @diagnostic disable-next-line : missing-fields
410418 vm .setNode (source , {
411419 type = ' boolean' ,
412420 start = source .start ,
0 commit comments