Mercurial > vim
comparison src/proto/vim9compile.pro @ 33233:108d890d887f v9.0.1890
patch 9.0.1890: Vim9: lookup code for class/object repaeated
Commit: https://github.com/vim/vim/commit/f36bbcd402c6ee5a27bcab3b20b6362ab93b8898
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Sun Sep 10 18:19:06 2023 +0200
patch 9.0.1890: Vim9: lookup code for class/object repaeated
Problem: Vim9: lookup code for class/object repaeated
Solution: Refactor and make use of lookup functions
closes: #13067
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 10 Sep 2023 18:30:04 +0200 |
parents | 67d9fbe516a3 |
children |
comparison
equal
deleted
inserted
replaced
33232:d72f150af9f1 | 33233:108d890d887f |
---|---|
2 int lookup_local(char_u *name, size_t len, lvar_T *lvar, cctx_T *cctx); | 2 int lookup_local(char_u *name, size_t len, lvar_T *lvar, cctx_T *cctx); |
3 int arg_exists(char_u *name, size_t len, int *idxp, type_T **type, int *gen_load_outer, cctx_T *cctx); | 3 int arg_exists(char_u *name, size_t len, int *idxp, type_T **type, int *gen_load_outer, cctx_T *cctx); |
4 void update_script_var_block_id(char_u *name, int block_id); | 4 void update_script_var_block_id(char_u *name, int block_id); |
5 int script_is_vim9(void); | 5 int script_is_vim9(void); |
6 int script_var_exists(char_u *name, size_t len, cctx_T *cctx, cstack_T *cstack); | 6 int script_var_exists(char_u *name, size_t len, cctx_T *cctx, cstack_T *cstack); |
7 int cctx_class_method_idx(cctx_T *cctx, char_u *name, size_t len, class_T **cl_ret); | |
8 int cctx_class_member_idx(cctx_T *cctx, char_u *name, size_t len, class_T **cl_ret); | |
7 int check_defined(char_u *p, size_t len, cctx_T *cctx, cstack_T *cstack, int is_arg); | 9 int check_defined(char_u *p, size_t len, cctx_T *cctx, cstack_T *cstack, int is_arg); |
8 int need_type_where(type_T *actual, type_T *expected, int number_ok, int offset, where_T where, cctx_T *cctx, int silent, int actual_is_const); | 10 int need_type_where(type_T *actual, type_T *expected, int number_ok, int offset, where_T where, cctx_T *cctx, int silent, int actual_is_const); |
9 int need_type(type_T *actual, type_T *expected, int number_ok, int offset, int arg_idx, cctx_T *cctx, int silent, int actual_is_const); | 11 int need_type(type_T *actual, type_T *expected, int number_ok, int offset, int arg_idx, cctx_T *cctx, int silent, int actual_is_const); |
10 lvar_T *reserve_local(cctx_T *cctx, char_u *name, size_t len, int assign, type_T *type); | 12 lvar_T *reserve_local(cctx_T *cctx, char_u *name, size_t len, int assign, type_T *type); |
11 int get_script_item_idx(int sid, char_u *name, int check_writable, cctx_T *cctx, cstack_T *cstack); | 13 int get_script_item_idx(int sid, char_u *name, int check_writable, cctx_T *cctx, cstack_T *cstack); |