diff options
Diffstat (limited to 'script/parser/guide.lua')
-rw-r--r-- | script/parser/guide.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua index 4e71c832..9a966163 100644 --- a/script/parser/guide.lua +++ b/script/parser/guide.lua @@ -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 |