Lines Matching refs:context

215 	argcontext_T	*context)  in check_arg_type()  argument
220 context->arg_idx - context->arg_count, context->arg_idx + 1, in check_arg_type()
221 context->arg_cctx, FALSE, FALSE); in check_arg_type()
228 arg_float_or_nr(type_T *type, argcontext_T *context) in arg_float_or_nr() argument
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
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
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
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
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
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
386 arg_type_mismatch(&t_string, type, context->arg_idx + 1); 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
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
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
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
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
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
481 type_T *prev_type = context->arg_types[context->arg_idx - 1]; in arg_same_as_prev()
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
494 type_T *prev_type = context->arg_types[context->arg_idx - 1]; in arg_same_struct_as_prev()
496 if (prev_type->tt_type != context->arg_types[context->arg_idx]->tt_type) in arg_same_struct_as_prev()
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
508 type_T *prev_type = context->arg_types[context->arg_idx - 1]; in arg_item_of_prev()
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
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
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
558 type_T *first_type = context->arg_types[context->arg_idx - 2]; in arg_extend3()
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
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
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
612 type_T *first_type = context->arg_types[context->arg_idx - 1]; in arg_remove2()
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
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
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
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
685 arg_type_mismatch(&t_number, type, context->arg_idx + 1); in arg_cursor1()
2446 argcontext_T context; in internal_func_check_arg_types() local
2448 context.arg_count = argcount; in internal_func_check_arg_types()
2449 context.arg_types = types; in internal_func_check_arg_types()
2450 context.arg_cctx = cctx; in internal_func_check_arg_types()
2454 context.arg_idx = i; in internal_func_check_arg_types()
2455 if (argchecks[i](types[i], &context) == FAIL) in internal_func_check_arg_types()