summaryrefslogtreecommitdiff
path: root/script/plugins/astHelper.lua
diff options
context:
space:
mode:
authorfesily <fesil@foxmail.com>2024-01-10 16:36:56 +0800
committerfesily <fesil@foxmail.com>2024-01-10 16:36:56 +0800
commit47e534a91d59666ad00595cdfef56af1e8906be2 (patch)
tree3d3412c723b6ffae5bce6678ded52ae62b82159e /script/plugins/astHelper.lua
parentf15f707d4b740681546dc65ee1242796367d68fd (diff)
downloadlua-language-server-47e534a91d59666ad00595cdfef56af1e8906be2.zip
fix removeArg
Diffstat (limited to 'script/plugins/astHelper.lua')
-rw-r--r--script/plugins/astHelper.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/plugins/astHelper.lua b/script/plugins/astHelper.lua
index b12d62c6..61b3f890 100644
--- a/script/plugins/astHelper.lua
+++ b/script/plugins/astHelper.lua
@@ -38,7 +38,7 @@ end
---@param index integer
---@return parser.object?
function _M.removeArg(source, index)
- if source.type == 'function' then
+ if source.type == 'function' or source.type == 'call' then
local arg = table.remove(source.args, index)
if not arg then
return nil