blob: 13b96c2240c0e028b66b403cb7216d04740839fc [file] [log] [blame]
Bram Moolenaar8a7d6542020-01-26 15:56:19 +01001/* vim9compile.c */
Bram Moolenaardc7c3662021-12-20 15:04:29 +00002int lookup_local(char_u *name, size_t len, lvar_T *lvar, cctx_T *cctx);
3int arg_exists(char_u *name, size_t len, int *idxp, type_T **type, int *gen_load_outer, cctx_T *cctx);
Bram Moolenaar766ae5b2022-09-14 00:30:51 +01004void update_script_var_block_id(char_u *name, int block_id);
Bram Moolenaardc7c3662021-12-20 15:04:29 +00005int script_is_vim9(void);
Bram Moolenaardce24412022-02-08 20:35:30 +00006int script_var_exists(char_u *name, size_t len, cctx_T *cctx, cstack_T *cstack);
7int check_defined(char_u *p, size_t len, cctx_T *cctx, cstack_T *cstack, int is_arg);
Bram Moolenaara1c51952022-02-02 16:20:26 +00008int need_type_where(type_T *actual, type_T *expected, int offset, where_T where, cctx_T *cctx, int silent, int actual_is_const);
Bram Moolenaar351ead02021-01-16 16:07:01 +01009int need_type(type_T *actual, type_T *expected, int offset, int arg_idx, cctx_T *cctx, int silent, int actual_is_const);
Bram Moolenaardc7c3662021-12-20 15:04:29 +000010lvar_T *reserve_local(cctx_T *cctx, char_u *name, size_t len, int isConst, type_T *type);
Bram Moolenaarb6a138e2022-02-08 21:17:22 +000011int get_script_item_idx(int sid, char_u *name, int check_writable, cctx_T *cctx, cstack_T *cstack);
Bram Moolenaar4b1d9632022-02-13 21:51:08 +000012imported_T *find_imported(char_u *name, size_t len, int load);
Bram Moolenaardc7c3662021-12-20 15:04:29 +000013char_u *may_peek_next_line(cctx_T *cctx, char_u *arg, char_u **nextp);
Bram Moolenaar7a4b8982020-07-08 17:36:21 +020014char_u *peek_next_line_from_context(cctx_T *cctx);
15char_u *next_line_from_context(cctx_T *cctx, int skip_comment);
Bram Moolenaardc7c3662021-12-20 15:04:29 +000016int may_get_next_line(char_u *whitep, char_u **arg, cctx_T *cctx);
17int may_get_next_line_error(char_u *whitep, char_u **arg, cctx_T *cctx);
Bram Moolenaar7a6eaa02021-03-21 20:53:29 +010018void fill_exarg_from_cctx(exarg_T *eap, cctx_T *cctx);
Bram Moolenaardc7c3662021-12-20 15:04:29 +000019int func_needs_compiling(ufunc_T *ufunc, compiletype_T compile_type);
Bram Moolenaar0abc2872022-05-10 13:24:30 +010020char_u *compile_one_expr_in_str(char_u *p, cctx_T *cctx);
LemonBoy2eaef102022-05-06 13:14:50 +010021int compile_all_expr_in_str(char_u *str, int evalstr, cctx_T *cctx);
Bram Moolenaar8a7d6542020-01-26 15:56:19 +010022int assignment_len(char_u *p, int *heredoc);
Bram Moolenaare55b1c02020-06-21 15:52:59 +020023void vim9_declare_error(char_u *name);
Bram Moolenaar97f8c102022-04-02 19:43:57 +010024int get_var_dest(char_u *name, assign_dest_T *dest, cmdidx_T cmdidx, int *option_scope, int *vimvaridx, type_T **type, cctx_T *cctx);
25int compile_lhs(char_u *var_start, lhs_T *lhs, cmdidx_T cmdidx, int heredoc, int has_cmd, int oplen, cctx_T *cctx);
26int 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);
Bram Moolenaardc7c3662021-12-20 15:04:29 +000027int compile_load_lhs_with_index(lhs_T *lhs, char_u *var_start, cctx_T *cctx);
28int compile_assign_unlet(char_u *var_start, lhs_T *lhs, int is_assign, type_T *rhs_type, cctx_T *cctx);
Bram Moolenaar139575d2022-03-15 19:29:30 +000029compiletype_T get_compile_type(ufunc_T *ufunc);
Bram Moolenaare99d4222021-06-13 14:01:26 +020030int compile_def_function(ufunc_T *ufunc, int check_return_type, compiletype_T compile_type, cctx_T *outer_cctx);
Bram Moolenaar6ff71d82020-05-24 23:45:24 +020031void set_function_type(ufunc_T *ufunc);
Bram Moolenaarfdeab652020-09-19 15:16:50 +020032void unlink_def_function(ufunc_T *ufunc);
Bram Moolenaarcd45ed02020-12-22 17:35:54 +010033void link_def_function(ufunc_T *ufunc);
Bram Moolenaar8a7d6542020-01-26 15:56:19 +010034void free_def_functions(void);
35/* vim: set ft=c : */