From e87b06ee0fe2a588b72a356bbb8378899365d626 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sun, 5 Jul 2020 17:18:56 -0400 Subject: Add rockspec Add a rockspec and move the files around so that luarocks can install it correctly --- funcsignature.etlua | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 funcsignature.etlua (limited to 'funcsignature.etlua') diff --git a/funcsignature.etlua b/funcsignature.etlua deleted file mode 100644 index 48d92ba..0000000 --- a/funcsignature.etlua +++ /dev/null @@ -1,22 +0,0 @@ -<% assert(func, "Requires function to render a function signature") %> -<% assert(funcname, "Requires a function name to render a function signature") %> -<%- funcname %>( - <% if func.params and #func.params > 0 then %> - <% local optchain = false %> - <% for paramid, param in pairs(func.params) do %> - <% if paramid == 1 and param.optional then %> - [ - <% elseif param.optional then %> - [, - <% elseif paramid > 1 then %> - , - <% end %> - <%- param.name %> - <% if paramid == 1 and param.optional then %> - ] - <% elseif param.optional then %> - ] - <% end %> - <% end %> - <% end %> -) -- cgit v1.2.3-70-g09d2