Swaps arg_count globally

This commit is contained in:
Rebecca Valentine
2020-02-25 10:50:30 -08:00
parent c2a3af7e67
commit cf4b7e1270
2 changed files with 8 additions and 8 deletions

View File

@@ -20,9 +20,9 @@ overriding.overrides(func) and
call = overriding.getAMethodCall().getNode() and
correct_args_if_called_as_method(call, overriding) and
(
arg_count(call)+1 < func.minParameters() and problem = "too few arguments"
arg_count_objectapi(call)+1 < func.minParameters() and problem = "too few arguments"
or
arg_count(call) >= func.maxParameters() and problem = "too many arguments"
arg_count_objectapi(call) >= func.maxParameters() and problem = "too many arguments"
or
exists(string name | call.getAKeyword().getArg() = name and
overriding.getFunction().getAnArg().(Name).getId() = name and