diff options
Diffstat (limited to 'server-beta/src/core/hover/arg.lua')
-rw-r--r-- | server-beta/src/core/hover/arg.lua | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/server-beta/src/core/hover/arg.lua b/server-beta/src/core/hover/arg.lua deleted file mode 100644 index be344488..00000000 --- a/server-beta/src/core/hover/arg.lua +++ /dev/null @@ -1,20 +0,0 @@ -local guide = require 'parser.guide' -local vm = require 'vm' - -local function asFunction(source) - if not source.args then - return '' - end - local args = {} - for i = 1, #source.args do - local arg = source.args[i] - args[i] = ('%s: %s'):format(guide.getName(arg), vm.getType(arg)) - end - return table.concat(args, ', ') -end - -return function (source) - if source.type == 'function' then - return asFunction(source) - end -end |