Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions script/parser/guide.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1313,12 +1313,18 @@ end
function m.getParams(source)
if source.type == 'call' then
local args = source.args
if not args then
return
end
assert(args.type == 'callargs', 'call.args type is\'t callargs')
return args
elseif source.type == 'callargs' then
return source
elseif source.type == 'function' then
local args = source.args
if not args then
return
end
assert(args.type == 'funcargs', 'function.args type is\'t callargs')
return args
end
Expand Down