All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
10 function! Func3a(x,y,z,...)
20 Execute(We should be able to compute the argument count for function names):
21 AssertEqual 0, ale#util#FunctionArgCount('Func0')
22 AssertEqual 1, ale#util#FunctionArgCount('Func1')
23 AssertEqual 2, ale#util#FunctionArgCount('Func2')
24 AssertEqual 3, ale#util#FunctionArgCount('Func3')
25 AssertEqual 3, ale#util#FunctionArgCount('Func3a')
27 Execute(We should be able to compute the argument count for Funcrefs):
28 AssertEqual 0, ale#util#FunctionArgCount(function('Func0'))
29 AssertEqual 1, ale#util#FunctionArgCount(function('Func1'))
30 AssertEqual 2, ale#util#FunctionArgCount(function('Func2'))
31 AssertEqual 3, ale#util#FunctionArgCount(function('Func3'))
32 AssertEqual 3, ale#util#FunctionArgCount(function('Func3a'))
34 Execute(We should be able to compute the argument count for lambdas):
36 AssertEqual 0, ale#util#FunctionArgCount({->1})
37 AssertEqual 1, ale#util#FunctionArgCount({x->1})
38 AssertEqual 2, ale#util#FunctionArgCount({x,y->1})
39 AssertEqual 3, ale#util#FunctionArgCount({x,y,z->1})
40 AssertEqual 3, ale#util#FunctionArgCount({x,y,z,...->1})
43 Execute(We should be able to compute the argument count autoload functions not yet loaded):
44 AssertEqual 1, ale#util#FunctionArgCount(function('ale#fixers#yapf#Fix'))
45 AssertEqual 1, ale#util#FunctionArgCount('ale#fixers#yapf#Fix')