Lines Matching refs:expected

444 	type_T	    *expected,  in check_typval_arg_type()  argument
453 return check_typval_type(expected, actual_tv, where); in check_typval_arg_type()
461 check_typval_type(type_T *expected, typval_T *actual_tv, where_T where) in check_typval_type() argument
480 res = check_type(expected, actual_type, TRUE, where); in check_typval_type()
486 type_mismatch(type_T *expected, type_T *actual) in type_mismatch() argument
488 arg_type_mismatch(expected, actual, 0); in type_mismatch()
492 arg_type_mismatch(type_T *expected, type_T *actual, int arg_idx) in arg_type_mismatch() argument
497 type_mismatch_where(expected, actual, where); in arg_type_mismatch()
501 type_mismatch_where(type_T *expected, type_T *actual, where_T where) in type_mismatch_where() argument
504 char *typename1 = type_name(expected, &tofree1); in type_mismatch_where()
536 check_type(type_T *expected, type_T *actual, int give_msg, where_T where) in check_type() argument
542 if (expected->tt_type != VAR_UNKNOWN in check_type()
543 && !(expected->tt_type == VAR_ANY && actual->tt_type != VAR_VOID)) in check_type()
548 if (!(expected->tt_type == actual->tt_type in check_type()
549 || (expected->tt_type == VAR_FUNC in check_type()
552 if (expected->tt_type == VAR_BOOL in check_type()
557 type_mismatch_where(expected, actual, where); in check_type()
560 if (expected->tt_type == VAR_DICT || expected->tt_type == VAR_LIST) in check_type()
564 ret = check_type(expected->tt_member, actual->tt_member, in check_type()
567 else if (expected->tt_type == VAR_FUNC) in check_type()
571 if (expected->tt_member != &t_unknown in check_type()
573 ret = check_type(expected->tt_member, actual->tt_member, in check_type()
575 if (ret == OK && expected->tt_argcount != -1 in check_type()
578 || (actual->tt_argcount < expected->tt_min_argcount in check_type()
579 || actual->tt_argcount > expected->tt_argcount))) in check_type()
581 if (ret == OK && expected->tt_args != NULL in check_type()
586 for (i = 0; i < expected->tt_argcount; ++i) in check_type()
589 expected->tt_args[i], actual->tt_args[i], FALSE, in check_type()
598 type_mismatch_where(expected, actual, where); in check_type()
635 type_T *expected; in check_argument_types() local
638 expected = type->tt_args[type->tt_argcount - 1]->tt_member; in check_argument_types()
640 expected = type->tt_args[i]; in check_argument_types()
641 if (check_typval_arg_type(expected, &argvars[i], NULL, i + 1) == FAIL) in check_argument_types()