@@ -60,7 +60,7 @@ FunctionObject get_function_or_initializer_objectapi(Object func_or_cls) {
6060
6161
6262/**Whether there is an illegally named parameter called `name` in the `call` to `func` */
63- predicate illegally_named_parameter ( Call call , Object func , string name ) {
63+ predicate illegally_named_parameter_objectapi ( Call call , Object func , string name ) {
6464 not func .isC ( ) and
6565 name = call .getANamedArgumentName ( ) and
6666 call .getAFlowNode ( ) = get_a_call_objectapi ( func ) and
@@ -70,7 +70,7 @@ predicate illegally_named_parameter(Call call, Object func, string name) {
7070/**Whether there are too few arguments in the `call` to `callable` where `limit` is the lowest number of legal arguments */
7171predicate too_few_args ( Call call , Object callable , int limit ) {
7272 // Exclude cases where an incorrect name is used as that is covered by 'Wrong name for an argument in a call'
73- not illegally_named_parameter ( call , callable , _) and
73+ not illegally_named_parameter_objectapi ( call , callable , _) and
7474 not exists ( call .getStarargs ( ) ) and not exists ( call .getKwargs ( ) ) and
7575 arg_count_objectapi ( call ) < limit and
7676 exists ( FunctionObject func | func = get_function_or_initializer_objectapi ( callable ) |
@@ -91,7 +91,7 @@ predicate too_few_args(Call call, Object callable, int limit) {
9191/**Whether there are too many arguments in the `call` to `func` where `limit` is the highest number of legal arguments */
9292predicate too_many_args ( Call call , Object callable , int limit ) {
9393 // Exclude cases where an incorrect name is used as that is covered by 'Wrong name for an argument in a call'
94- not illegally_named_parameter ( call , callable , _) and
94+ not illegally_named_parameter_objectapi ( call , callable , _) and
9595 exists ( FunctionObject func |
9696 func = get_function_or_initializer_objectapi ( callable ) and
9797 not func .getFunction ( ) .hasVarArg ( ) and limit >= 0
0 commit comments