Lines Matching refs:type
228 arg_float_or_nr(type_T *type, argcontext_T *context) in arg_float_or_nr() argument
230 if (type->tt_type == VAR_ANY in arg_float_or_nr()
231 || type->tt_type == VAR_FLOAT || type->tt_type == VAR_NUMBER) in arg_float_or_nr()
233 arg_type_mismatch(&t_number, type, context->arg_idx + 1); in arg_float_or_nr()
241 arg_number(type_T *type, argcontext_T *context) in arg_number() argument
243 return check_arg_type(&t_number, type, context); in arg_number()
250 arg_dict_any(type_T *type, argcontext_T *context) in arg_dict_any() argument
252 return check_arg_type(&t_dict_any, type, context); in arg_dict_any()
259 arg_list_any(type_T *type, argcontext_T *context) in arg_list_any() argument
261 return check_arg_type(&t_list_any, type, context); in arg_list_any()
268 arg_list_number(type_T *type, argcontext_T *context) in arg_list_number() argument
270 return check_arg_type(&t_list_number, type, context); in arg_list_number()
277 arg_list_string(type_T *type, argcontext_T *context) in arg_list_string() argument
279 return check_arg_type(&t_list_string, type, context); in arg_list_string()
286 arg_string(type_T *type, argcontext_T *context) in arg_string() argument
288 return check_arg_type(&t_string, type, context); in arg_string()
295 arg_blob(type_T *type, argcontext_T *context) in arg_blob() argument
297 return check_arg_type(&t_blob, type, context); in arg_blob()
304 arg_bool(type_T *type, argcontext_T *context) in arg_bool() argument
306 return check_arg_type(&t_bool, type, context); in arg_bool()
313 arg_list_or_blob(type_T *type, argcontext_T *context) in arg_list_or_blob() argument
315 if (type->tt_type == VAR_ANY in arg_list_or_blob()
316 || type->tt_type == VAR_LIST || type->tt_type == VAR_BLOB) in arg_list_or_blob()
318 arg_type_mismatch(&t_list_any, type, context->arg_idx + 1); in arg_list_or_blob()
326 arg_string_or_nr(type_T *type, argcontext_T *context) in arg_string_or_nr() argument
328 if (type->tt_type == VAR_ANY in arg_string_or_nr()
329 || type->tt_type == VAR_STRING || type->tt_type == VAR_NUMBER) in arg_string_or_nr()
331 arg_type_mismatch(&t_string, type, context->arg_idx + 1); in arg_string_or_nr()
339 arg_buffer(type_T *type, argcontext_T *context) in arg_buffer() argument
341 if (type->tt_type == VAR_ANY in arg_buffer()
342 || type->tt_type == VAR_STRING || type->tt_type == VAR_NUMBER) in arg_buffer()
344 arg_type_mismatch(&t_string, type, context->arg_idx + 1); in arg_buffer()
352 arg_buffer_or_dict_any(type_T *type, argcontext_T *context) in arg_buffer_or_dict_any() argument
354 if (type->tt_type == VAR_ANY in arg_buffer_or_dict_any()
355 || type->tt_type == VAR_STRING in arg_buffer_or_dict_any()
356 || type->tt_type == VAR_NUMBER in arg_buffer_or_dict_any()
357 || type->tt_type == VAR_DICT) in arg_buffer_or_dict_any()
359 arg_type_mismatch(&t_string, type, context->arg_idx + 1); in arg_buffer_or_dict_any()
367 arg_lnum(type_T *type, argcontext_T *context) in arg_lnum() argument
369 if (type->tt_type == VAR_ANY in arg_lnum()
370 || type->tt_type == VAR_STRING || type->tt_type == VAR_NUMBER) in arg_lnum()
372 arg_type_mismatch(&t_string, type, context->arg_idx + 1); in arg_lnum()
380 arg_string_or_list_string(type_T *type, argcontext_T *context) in arg_string_or_list_string() argument
382 if (type->tt_type == VAR_ANY || type->tt_type == VAR_STRING) in arg_string_or_list_string()
384 if (type->tt_type != VAR_LIST) in arg_string_or_list_string()
386 arg_type_mismatch(&t_string, type, context->arg_idx + 1); in arg_string_or_list_string()
389 if (type->tt_member->tt_type == VAR_ANY in arg_string_or_list_string()
390 || type->tt_member->tt_type == VAR_STRING) in arg_string_or_list_string()
393 arg_type_mismatch(&t_list_string, type, context->arg_idx + 1); in arg_string_or_list_string()
401 arg_string_or_list_any(type_T *type, argcontext_T *context) in arg_string_or_list_any() argument
403 if (type->tt_type == VAR_ANY in arg_string_or_list_any()
404 || type->tt_type == VAR_STRING || type->tt_type == VAR_LIST) in arg_string_or_list_any()
406 arg_type_mismatch(&t_string, type, context->arg_idx + 1); in arg_string_or_list_any()
414 arg_string_or_blob(type_T *type, argcontext_T *context) in arg_string_or_blob() argument
416 if (type->tt_type == VAR_ANY in arg_string_or_blob()
417 || type->tt_type == VAR_STRING || type->tt_type == VAR_BLOB) in arg_string_or_blob()
419 arg_type_mismatch(&t_string, type, context->arg_idx + 1); in arg_string_or_blob()
427 arg_list_or_dict(type_T *type, argcontext_T *context) in arg_list_or_dict() argument
429 if (type->tt_type == VAR_ANY in arg_list_or_dict()
430 || type->tt_type == VAR_LIST || type->tt_type == VAR_DICT) in arg_list_or_dict()
432 arg_type_mismatch(&t_list_any, type, context->arg_idx + 1); in arg_list_or_dict()
440 arg_list_or_dict_or_blob(type_T *type, argcontext_T *context) in arg_list_or_dict_or_blob() argument
442 if (type->tt_type == VAR_ANY in arg_list_or_dict_or_blob()
443 || type->tt_type == VAR_LIST in arg_list_or_dict_or_blob()
444 || type->tt_type == VAR_DICT in arg_list_or_dict_or_blob()
445 || type->tt_type == VAR_BLOB) in arg_list_or_dict_or_blob()
447 arg_type_mismatch(&t_list_any, type, context->arg_idx + 1); in arg_list_or_dict_or_blob()
455 arg_job(type_T *type, argcontext_T *context) in arg_job() argument
457 return check_arg_type(&t_job, type, context); in arg_job()
464 arg_chan_or_job(type_T *type, argcontext_T *context) in arg_chan_or_job() argument
466 if (type->tt_type == VAR_ANY in arg_chan_or_job()
467 || type->tt_type == VAR_CHANNEL in arg_chan_or_job()
468 || type->tt_type == VAR_JOB) in arg_chan_or_job()
470 arg_type_mismatch(&t_channel, type, context->arg_idx + 1); in arg_chan_or_job()
479 arg_same_as_prev(type_T *type, argcontext_T *context) in arg_same_as_prev() argument
483 return check_arg_type(prev_type, type, context); in arg_same_as_prev()
492 arg_same_struct_as_prev(type_T *type, argcontext_T *context) in arg_same_struct_as_prev() argument
497 return check_arg_type(prev_type, type, context); in arg_same_struct_as_prev()
506 arg_item_of_prev(type_T *type, argcontext_T *context) in arg_item_of_prev() argument
519 return check_arg_type(expected, type, context); in arg_item_of_prev()
526 arg_str_or_nr_or_list(type_T *type, argcontext_T *context) in arg_str_or_nr_or_list() argument
528 if (type->tt_type == VAR_ANY in arg_str_or_nr_or_list()
529 || type->tt_type == VAR_STRING in arg_str_or_nr_or_list()
530 || type->tt_type == VAR_NUMBER in arg_str_or_nr_or_list()
531 || type->tt_type == VAR_LIST) in arg_str_or_nr_or_list()
533 arg_type_mismatch(&t_string, type, context->arg_idx + 1); in arg_str_or_nr_or_list()
541 arg_dict_any_or_string(type_T *type, argcontext_T *context) in arg_dict_any_or_string() argument
543 if (type->tt_type == VAR_ANY in arg_dict_any_or_string()
544 || type->tt_type == VAR_DICT in arg_dict_any_or_string()
545 || type->tt_type == VAR_STRING) in arg_dict_any_or_string()
547 arg_type_mismatch(&t_string, type, context->arg_idx + 1); in arg_dict_any_or_string()
556 arg_extend3(type_T *type, argcontext_T *context) in arg_extend3() argument
561 return arg_number(type, context); in arg_extend3()
563 return arg_string(type, context); in arg_extend3()
572 arg_get1(type_T *type, argcontext_T *context) in arg_get1() argument
574 if (type->tt_type == VAR_ANY in arg_get1()
575 || type->tt_type == VAR_BLOB in arg_get1()
576 || type->tt_type == VAR_LIST in arg_get1()
577 || type->tt_type == VAR_DICT in arg_get1()
578 || type->tt_type == VAR_FUNC in arg_get1()
579 || type->tt_type == VAR_PARTIAL) in arg_get1()
582 arg_type_mismatch(&t_list_any, type, context->arg_idx + 1); in arg_get1()
591 arg_len1(type_T *type, argcontext_T *context) in arg_len1() argument
593 if (type->tt_type == VAR_ANY in arg_len1()
594 || type->tt_type == VAR_STRING in arg_len1()
595 || type->tt_type == VAR_NUMBER in arg_len1()
596 || type->tt_type == VAR_BLOB in arg_len1()
597 || type->tt_type == VAR_LIST in arg_len1()
598 || type->tt_type == VAR_DICT) in arg_len1()
601 arg_type_mismatch(&t_list_any, type, context->arg_idx + 1); in arg_len1()
610 arg_remove2(type_T *type, argcontext_T *context) in arg_remove2() argument
615 return arg_number(type, context); in arg_remove2()
617 return arg_string_or_nr(type, context); in arg_remove2()
626 arg_repeat1(type_T *type, argcontext_T *context) in arg_repeat1() argument
628 if (type->tt_type == VAR_ANY in arg_repeat1()
629 || type->tt_type == VAR_STRING in arg_repeat1()
630 || type->tt_type == VAR_NUMBER in arg_repeat1()
631 || type->tt_type == VAR_LIST) in arg_repeat1()
634 arg_type_mismatch(&t_string, type, context->arg_idx + 1); in arg_repeat1()
643 arg_slice1(type_T *type, argcontext_T *context) in arg_slice1() argument
645 if (type->tt_type == VAR_ANY in arg_slice1()
646 || type->tt_type == VAR_LIST in arg_slice1()
647 || type->tt_type == VAR_BLOB in arg_slice1()
648 || type->tt_type == VAR_STRING) in arg_slice1()
651 arg_type_mismatch(&t_list_any, type, context->arg_idx + 1); in arg_slice1()
660 arg_count1(type_T *type, argcontext_T *context) in arg_count1() argument
662 if (type->tt_type == VAR_ANY in arg_count1()
663 || type->tt_type == VAR_STRING in arg_count1()
664 || type->tt_type == VAR_LIST in arg_count1()
665 || type->tt_type == VAR_DICT) in arg_count1()
668 arg_type_mismatch(&t_string, type, context->arg_idx + 1); in arg_count1()
677 arg_cursor1(type_T *type, argcontext_T *context) in arg_cursor1() argument
679 if (type->tt_type == VAR_ANY in arg_cursor1()
680 || type->tt_type == VAR_NUMBER in arg_cursor1()
681 || type->tt_type == VAR_STRING in arg_cursor1()
682 || type->tt_type == VAR_LIST) in arg_cursor1()
685 arg_type_mismatch(&t_number, type, context->arg_idx + 1); in arg_cursor1()
2957 int type = VIM_GENERIC; in f_confirm() local
2990 case 'E': type = VIM_ERROR; break; in f_confirm()
2991 case 'Q': type = VIM_QUESTION; break; in f_confirm()
2992 case 'I': type = VIM_INFO; break; in f_confirm()
2993 case 'W': type = VIM_WARNING; break; in f_confirm()
2994 case 'G': type = VIM_GENERIC; break; in f_confirm()
3005 rettv->vval.v_number = do_dialog(type, NULL, message, buttons, in f_confirm()
6684 libcall_common(typval_T *argvars UNUSED, typval_T *rettv, int type) in libcall_common() argument
6692 rettv->v_type = type; in libcall_common()
6693 if (type != VAR_NUMBER) in libcall_common()
6712 if (type == VAR_NUMBER) in libcall_common()
6727 && type == VAR_NUMBER) in libcall_common()
6851 find_some_match(typval_T *argvars, typval_T *rettv, matchtype_T type) in find_some_match() argument
6875 if (type == MATCH_LIST || type == MATCH_POS) in find_some_match()
6881 if (type == MATCH_POS in find_some_match()
6896 else if (type == MATCH_STR) in find_some_match()
7013 if (type == MATCH_POS) in find_some_match()
7030 else if (type == MATCH_LIST) in find_some_match()
7050 else if (type == MATCH_STR) in find_some_match()
7063 if (type != MATCH_END) in find_some_match()
7076 if (type == MATCH_POS && l == NULL && rettv->vval.v_list != NULL) in find_some_match()