summaryrefslogtreecommitdiff
path: root/script/core/hover/label.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/hover/label.lua')
-rw-r--r--script/core/hover/label.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/script/core/hover/label.lua b/script/core/hover/label.lua
index c037b3f5..7f9f29a4 100644
--- a/script/core/hover/label.lua
+++ b/script/core/hover/label.lua
@@ -1,5 +1,5 @@
local buildName = require 'core.hover.name'
-local buildArg = require 'core.hover.arg'
+local buildArgs = require 'core.hover.args'
local buildReturn = require 'core.hover.return'
local buildTable = require 'core.hover.table'
local infer = require 'vm.infer'
@@ -12,7 +12,7 @@ local guide = require 'parser.guide'
local function asFunction(source, oop)
local name = buildName(source, oop)
- local arg = buildArg(source, oop)
+ local args = buildArgs(source)
local rtn = buildReturn(source)
local lines = {}
@@ -20,7 +20,7 @@ local function asFunction(source, oop)
, vm.isAsync(source) and 'async ' or ''
, oop and 'method' or 'function'
, name or ''
- , arg
+ , oop and table.concat(args, ', ', 2) or table.concat(args, ', ')
)
lines[2] = rtn