aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/macro.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/outputs/macro.lua')
-rw-r--r--spec/outputs/macro.lua39
1 files changed, 20 insertions, 19 deletions
diff --git a/spec/outputs/macro.lua b/spec/outputs/macro.lua
index aa74ed9..89c6e63 100644
--- a/spec/outputs/macro.lua
+++ b/spec/outputs/macro.lua
@@ -26,6 +26,10 @@ print({
26 123, 26 123,
27 'xyz' 27 'xyz'
28}) 28})
29print({
30 456,
31 'abc'
32})
29do 33do
30 assert(item == nil) 34 assert(item == nil)
31end 35end
@@ -191,13 +195,11 @@ end
191do 195do
192 local a = 8 196 local a = 8
193 a = (function() 197 a = (function()
194 local a 198 local a = 1
195 a = 1
196 return a + 1 199 return a + 1
197 end)() 200 end)()
198 a = a + (function() 201 a = a + (function()
199 local a 202 local a = 1
200 a = 1
201 return a + 1 203 return a + 1
202 end)() 204 end)()
203 print(a) 205 print(a)
@@ -215,6 +217,13 @@ function tb:func()
215end 217end
216end 218end
217print(x) 219print(x)
220local yue = require("yue")
221do
222local function f2(a)
223 return a + 1
224end
225x = x + f2(3)
226end
218local sel 227local sel
219sel = function(a, b, c) 228sel = function(a, b, c)
220 if a then 229 if a then
@@ -274,18 +283,12 @@ local result = ((((((origin.transform.root.gameObject:Parents()):Descendants()):
274end)):Destroy() 283end)):Destroy()
275do 284do
276 do 285 do
277 local _1 286 local _1 = origin.transform.root.gameObject:Parents()
278 _1 = origin.transform.root.gameObject:Parents() 287 local _2 = _1:Descendants()
279 local _2 288 local _3 = _2:SelectEnable()
280 _2 = _1:Descendants() 289 local _4 = _3:SelectVisible()
281 local _3 290 local _5 = _4:TagEqual("fx")
282 _3 = _2:SelectEnable() 291 local _6 = _5:Where(function(x)
283 local _4
284 _4 = _3:SelectVisible()
285 local _5
286 _5 = _4:TagEqual("fx")
287 local _6
288 _6 = _5:Where(function(x)
289 return x.name:EndsWith("(Clone)") 292 return x.name:EndsWith("(Clone)")
290 end) 293 end)
291 _6:Destroy() 294 _6:Destroy()
@@ -325,7 +328,7 @@ print((setmetatable({
325 return 998 328 return 998
326 end 329 end
327})) 330}))
328print("current line: " .. tostring(323)) 331print("current line: " .. tostring(349))
329do 332do
330 do 333 do
331-- TODO 334-- TODO
@@ -338,10 +341,8 @@ local _1
338_1 = function() 341_1 = function()
339 print(1) 342 print(1)
340 local _accum_0 = { } 343 local _accum_0 = { }
341 local _len_0 = 1
342 while false do 344 while false do
343 break 345 break
344 _len_0 = _len_0 + 1
345 end 346 end
346 return _accum_0 347 return _accum_0
347end 348end