2020-01-26 15:56:19 +01:00
|
|
|
/* vim9compile.c */
|
2021-12-20 15:04:29 +00:00
|
|
|
int lookup_local(char_u *name, size_t len, lvar_T *lvar, cctx_T *cctx);
|
|
|
|
|
int arg_exists(char_u *name, size_t len, int *idxp, type_T **type, int *gen_load_outer, cctx_T *cctx);
|
2022-09-14 00:30:51 +01:00
|
|
|
void update_script_var_block_id(char_u *name, int block_id);
|
2021-12-20 15:04:29 +00:00
|
|
|
int script_is_vim9(void);
|
2022-02-08 20:35:30 +00:00
|
|
|
int script_var_exists(char_u *name, size_t len, cctx_T *cctx, cstack_T *cstack);
|
|
|
|
|
int check_defined(char_u *p, size_t len, cctx_T *cctx, cstack_T *cstack, int is_arg);
|
2022-12-29 20:56:24 +00:00
|
|
|
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);
|
|
|
|
|
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);
|
|
|
|
|
lvar_T *reserve_local(cctx_T *cctx, char_u *name, size_t len, int assign, type_T *type);
|
2022-02-08 21:17:22 +00:00
|
|
|
int get_script_item_idx(int sid, char_u *name, int check_writable, cctx_T *cctx, cstack_T *cstack);
|
2022-02-13 21:51:08 +00:00
|
|
|
imported_T *find_imported(char_u *name, size_t len, int load);
|
2021-12-20 15:04:29 +00:00
|
|
|
char_u *may_peek_next_line(cctx_T *cctx, char_u *arg, char_u **nextp);
|
2020-07-08 17:36:21 +02:00
|
|
|
char_u *peek_next_line_from_context(cctx_T *cctx);
|
|
|
|
|
char_u *next_line_from_context(cctx_T *cctx, int skip_comment);
|
2021-12-20 15:04:29 +00:00
|
|
|
int may_get_next_line(char_u *whitep, char_u **arg, cctx_T *cctx);
|
|
|
|
|
int may_get_next_line_error(char_u *whitep, char_u **arg, cctx_T *cctx);
|
2021-03-21 20:53:29 +01:00
|
|
|
void fill_exarg_from_cctx(exarg_T *eap, cctx_T *cctx);
|
2021-12-20 15:04:29 +00:00
|
|
|
int func_needs_compiling(ufunc_T *ufunc, compiletype_T compile_type);
|
2022-05-10 13:24:30 +01:00
|
|
|
char_u *compile_one_expr_in_str(char_u *p, cctx_T *cctx);
|
2022-05-06 13:14:50 +01:00
|
|
|
int compile_all_expr_in_str(char_u *str, int evalstr, cctx_T *cctx);
|
2020-01-26 15:56:19 +01:00
|
|
|
int assignment_len(char_u *p, int *heredoc);
|
2020-06-21 15:52:59 +02:00
|
|
|
void vim9_declare_error(char_u *name);
|
2022-04-02 19:43:57 +01:00
|
|
|
int get_var_dest(char_u *name, assign_dest_T *dest, cmdidx_T cmdidx, int *option_scope, int *vimvaridx, type_T **type, cctx_T *cctx);
|
|
|
|
|
int compile_lhs(char_u *var_start, lhs_T *lhs, cmdidx_T cmdidx, int heredoc, int has_cmd, int oplen, cctx_T *cctx);
|
|
|
|
|
int compile_assign_lhs(char_u *var_start, lhs_T *lhs, cmdidx_T cmdidx, int is_decl, int heredoc, int has_cmd, int oplen, cctx_T *cctx);
|
2021-12-20 15:04:29 +00:00
|
|
|
int compile_load_lhs_with_index(lhs_T *lhs, char_u *var_start, cctx_T *cctx);
|
|
|
|
|
int compile_assign_unlet(char_u *var_start, lhs_T *lhs, int is_assign, type_T *rhs_type, cctx_T *cctx);
|
2022-03-15 19:29:30 +00:00
|
|
|
compiletype_T get_compile_type(ufunc_T *ufunc);
|
2021-06-13 14:01:26 +02:00
|
|
|
int compile_def_function(ufunc_T *ufunc, int check_return_type, compiletype_T compile_type, cctx_T *outer_cctx);
|
2020-05-24 23:45:24 +02:00
|
|
|
void set_function_type(ufunc_T *ufunc);
|
2020-09-19 15:16:50 +02:00
|
|
|
void unlink_def_function(ufunc_T *ufunc);
|
2020-12-22 17:35:54 +01:00
|
|
|
void link_def_function(ufunc_T *ufunc);
|
2020-01-26 15:56:19 +01:00
|
|
|
void free_def_functions(void);
|
|
|
|
|
/* vim: set ft=c : */
|