Lines Matching refs:v_type

236     return tv->v_type != VAR_UNKNOWN  in eval_expr_valid_arg()
237 && (tv->v_type != VAR_STRING in eval_expr_valid_arg()
253 if (expr->v_type == VAR_FUNC) in eval_expr_typval()
263 else if (expr->v_type == VAR_PARTIAL) in eval_expr_typval()
289 else if (expr->v_type == VAR_INSTR) in eval_expr_typval()
489 if (convert && tv->v_type == VAR_LIST) in typval2string()
502 else if (convert && tv->v_type == VAR_FLOAT) in typval2string()
645 rettv->v_type = VAR_UNKNOWN; // clear_tv() uses this in call_vim_function()
736 if (rettv.v_type != VAR_LIST) in call_func_retlist()
771 if (tv.v_type == VAR_NUMBER) in eval_foldexpr()
773 else if (tv.v_type != VAR_STRING || tv.vval.v_string == NULL) in eval_foldexpr()
946 var1.v_type = VAR_UNKNOWN; in get_lval()
947 var2.v_type = VAR_UNKNOWN; in get_lval()
950 if (*p == '.' && lp->ll_tv->v_type != VAR_DICT) in get_lval()
956 if (lp->ll_tv->v_type != VAR_LIST in get_lval()
957 && lp->ll_tv->v_type != VAR_DICT in get_lval()
958 && lp->ll_tv->v_type != VAR_BLOB) in get_lval()
966 if (lp->ll_tv->v_type == VAR_LIST && lp->ll_tv->vval.v_list == NULL) in get_lval()
968 else if (lp->ll_tv->v_type == VAR_BLOB in get_lval()
1028 if (lp->ll_tv->v_type == VAR_DICT) in get_lval()
1036 && !(rettv->v_type == VAR_LIST in get_lval()
1038 && !(rettv->v_type == VAR_BLOB in get_lval()
1084 if (lp->ll_tv->v_type == VAR_DICT) in get_lval()
1129 && rettv->v_type == VAR_FUNC in get_lval()
1185 else if (lp->ll_tv->v_type == VAR_BLOB) in get_lval()
1315 if (lp->ll_range && rettv->v_type == VAR_BLOB) in set_var_lval()
1459 if (tv2->v_type != VAR_FUNC && tv2->v_type != VAR_DICT in tv_op()
1460 && ((tv2->v_type != VAR_BOOL && tv2->v_type != VAR_SPECIAL) in tv_op()
1463 switch (tv1->v_type) in tv_op()
1479 if (*op != '+' || tv2->v_type != VAR_BLOB) in tv_op()
1493 if (*op != '+' || tv2->v_type != VAR_LIST) in tv_op()
1510 if (tv2->v_type == VAR_LIST) in tv_op()
1517 if (tv2->v_type == VAR_FLOAT) in tv_op()
1531 tv1->v_type = VAR_FLOAT; in tv_op()
1548 tv1->v_type = VAR_NUMBER; in tv_op()
1554 if (tv2->v_type == VAR_FLOAT) in tv_op()
1561 tv1->v_type = VAR_STRING; in tv_op()
1572 || (tv2->v_type != VAR_FLOAT in tv_op()
1573 && tv2->v_type != VAR_NUMBER in tv_op()
1574 && tv2->v_type != VAR_STRING)) in tv_op()
1576 if (tv2->v_type == VAR_FLOAT) in tv_op()
1647 if (tv.v_type == VAR_LIST) in eval_for_line()
1667 else if (tv.v_type == VAR_BLOB) in eval_for_line()
1681 else if (tv.v_type == VAR_STRING) in eval_for_line()
1743 tv.v_type = VAR_NUMBER; in next_for_item()
1761 tv.v_type = VAR_STRING; in next_for_item()
2024 if (rettv->v_type == VAR_UNKNOWN && !evaluate && **arg == '(') in eval_func()
2027 rettv->v_type = VAR_FUNC; in eval_func()
2533 rettv->v_type = VAR_BOOL; in eval2()
2538 rettv->v_type = VAR_NUMBER; in eval2()
2660 rettv->v_type = VAR_BOOL; in eval3()
2665 rettv->v_type = VAR_NUMBER; in eval3()
2902 if ((op != '+' || (rettv->v_type != VAR_LIST in eval5()
2903 && rettv->v_type != VAR_BLOB)) in eval5()
2905 && (op == '.' || rettv->v_type != VAR_FLOAT) in eval5()
2954 if (vim9script && (var2.v_type == VAR_VOID in eval5()
2955 || var2.v_type == VAR_CHANNEL in eval5()
2956 || var2.v_type == VAR_JOB)) in eval5()
2958 vartype_name(var2.v_type)); in eval5()
2960 else if (vim9script && var2.v_type == VAR_FLOAT) in eval5()
2977 rettv->v_type = VAR_STRING; in eval5()
2980 else if (op == '+' && rettv->v_type == VAR_BLOB in eval5()
2981 && var2.v_type == VAR_BLOB) in eval5()
2983 else if (op == '+' && rettv->v_type == VAR_LIST in eval5()
2984 && var2.v_type == VAR_LIST) in eval5()
2996 if (rettv->v_type == VAR_FLOAT) in eval5()
3016 if (var2.v_type == VAR_FLOAT) in eval5()
3021 if (var2.v_type == VAR_FLOAT) in eval5()
3037 if (rettv->v_type == VAR_FLOAT) in eval5()
3045 if (rettv->v_type == VAR_FLOAT || var2.v_type == VAR_FLOAT) in eval5()
3051 rettv->v_type = VAR_FLOAT; in eval5()
3061 rettv->v_type = VAR_NUMBER; in eval5()
3143 if (rettv->v_type == VAR_FLOAT) in eval6()
3175 if (var2.v_type == VAR_FLOAT) in eval6()
3233 rettv->v_type = VAR_FLOAT; in eval6()
3250 rettv->v_type = VAR_NUMBER; in eval6()
3321 rettv->v_type = VAR_BOOL; in eval7t()
3410 rettv->v_type = VAR_UNKNOWN; in eval7()
3451 && rettv->v_type != VAR_BLOB) in eval7()
3525 rettv->v_type = VAR_STRING; in eval7()
3615 rettv->v_type = VAR_BOOL; in eval7()
3622 rettv->v_type = VAR_BOOL; in eval7()
3629 rettv->v_type = VAR_SPECIAL; in eval7()
3676 vartype_T type = rettv->v_type; in eval7_leader()
3680 if (rettv->v_type == VAR_FLOAT) in eval7_leader()
3710 if (rettv->v_type == VAR_FLOAT) in eval7_leader()
3714 rettv->v_type = VAR_BOOL; in eval7_leader()
3730 if (rettv->v_type == VAR_FLOAT) in eval7_leader()
3741 if (rettv->v_type == VAR_FLOAT) in eval7_leader()
3751 rettv->v_type = type; in eval7_leader()
3753 rettv->v_type = VAR_NUMBER; in eval7_leader()
3783 rettv->v_type = VAR_UNKNOWN; in call_func_rettv()
3786 if (functv.v_type == VAR_PARTIAL) in call_func_rettv()
3840 rettv->v_type = VAR_UNKNOWN; in eval_lambda()
3905 rettv->v_type = VAR_UNKNOWN; in eval_method()
4007 if (vim9 && rettv->v_type == VAR_DICT in eval_index()
4008 && var1.v_type == VAR_FLOAT) in eval_index()
4011 var1.v_type = VAR_STRING; in eval_index()
4092 switch (rettv->v_type) in check_can_index()
4143 && ((argvars[0].v_type != VAR_STRING in f_slice()
4144 && argvars[0].v_type != VAR_LIST in f_slice()
4145 && argvars[0].v_type != VAR_BLOB in f_slice()
4155 argvars[2].v_type == VAR_UNKNOWN ? NULL : argvars + 2, in f_slice()
4183 if (var1 != NULL && rettv->v_type != VAR_DICT) in eval_index_inner()
4188 if (rettv->v_type == VAR_DICT) in eval_index_inner()
4200 switch (rettv->v_type) in eval_index_inner()
4258 rettv->v_type = VAR_STRING; in eval_index_inner()
4754 if (tv->v_type == VAR_DICT) in set_ref_in_item()
4781 else if (tv->v_type == VAR_LIST) in set_ref_in_item()
4808 else if (tv->v_type == VAR_FUNC) in set_ref_in_item()
4812 else if (tv->v_type == VAR_PARTIAL) in set_ref_in_item()
4828 dtv.v_type = VAR_DICT; in set_ref_in_item()
4848 else if (tv->v_type == VAR_JOB) in set_ref_in_item()
4858 dtv.v_type = VAR_CHANNEL; in set_ref_in_item()
4864 dtv.v_type = VAR_PARTIAL; in set_ref_in_item()
4870 else if (tv->v_type == VAR_CHANNEL) in set_ref_in_item()
4890 dtv.v_type = VAR_PARTIAL; in set_ref_in_item()
4896 dtv.v_type = VAR_PARTIAL; in set_ref_in_item()
4904 dtv.v_type = VAR_PARTIAL; in set_ref_in_item()
4910 dtv.v_type = VAR_PARTIAL; in set_ref_in_item()
4960 switch (tv->v_type) in echo_string_core()
5024 dtv.v_type = VAR_DICT; in echo_string_core()
5102 r = tv->v_type == VAR_JOB ? job_to_string_buf(tv, numbuf) in echo_string_core()
5239 if (varp->v_type == VAR_LIST) in var2fpos()
5262 if (li != NULL && li->li_tv.v_type == VAR_STRING in var2fpos()
5386 if (arg->v_type != VAR_LIST in list2fpos()
5784 && ((rettv->v_type == VAR_DICT && *p == '.' && eval_isdictc(p[1])) in handle_subscript()
5794 if (rettv->v_type == VAR_ANY) in handle_subscript()
5846 rettv->v_type = VAR_FUNC; in handle_subscript()
5851 if ((**arg == '(' && (!evaluate || rettv->v_type == VAR_FUNC in handle_subscript()
5852 || rettv->v_type == VAR_PARTIAL)) in handle_subscript()
5894 || (**arg == '.' && (rettv->v_type == VAR_DICT in handle_subscript()
5900 if (rettv->v_type == VAR_DICT) in handle_subscript()
5922 && (rettv->v_type == VAR_FUNC in handle_subscript()
5923 || (rettv->v_type == VAR_PARTIAL in handle_subscript()
5956 switch (from->v_type) in item_copy()
5971 to->v_type = VAR_LIST; in item_copy()
5990 to->v_type = VAR_DICT; in item_copy()
6113 if (rettv.v_type == VAR_VOID) in ex_echo()
6192 if (rettv.v_type == VAR_CHANNEL || rettv.v_type == VAR_JOB) in ex_execute()
6195 vartype_name(rettv.v_type)); in ex_execute()