diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2024-01-23 14:15:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-23 14:15:32 +0800 |
commit | ea3aed4549900437793ddd7beafa88fa4ce10061 (patch) | |
tree | 5a49a5df0af79b110cb9ec9360828b3b9d625524 | |
parent | 06cad0c6ae16b26900d3d10f77d02f6e10dba87d (diff) | |
parent | 56f62c66b4abee0e6bcd2aef8657df3556643546 (diff) | |
download | lua-language-server-ea3aed4549900437793ddd7beafa88fa4ce10061.zip |
Merge pull request #2489 from fesily/fix-guide-getParams
fix guide.getParams
-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 |