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.
2 parents 06cad0c + 56f62c6 commit ea3aed4Copy full SHA for ea3aed4
script/parser/guide.lua
@@ -1313,12 +1313,18 @@ end
1313
function m.getParams(source)
1314
if source.type == 'call' then
1315
local args = source.args
1316
+ if not args then
1317
+ return
1318
+ end
1319
assert(args.type == 'callargs', 'call.args type is\'t callargs')
1320
return args
1321
elseif source.type == 'callargs' then
1322
return source
1323
elseif source.type == 'function' then
1324
1325
1326
1327
1328
assert(args.type == 'funcargs', 'function.args type is\'t callargs')
1329
1330
end
0 commit comments