0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.0222: Vim9: optional function arguments don't work yet

Problem:    Vim9: optional function arguments don't work yet.
Solution:   Implement optional function arguments.
This commit is contained in:
Bram Moolenaar
2020-02-06 17:51:35 +01:00
parent 6e587dcbf3
commit 170fcfcf25
6 changed files with 154 additions and 51 deletions

View File

@@ -1515,6 +1515,8 @@ typedef struct
type_T **uf_arg_types; // argument types (count == uf_args.ga_len)
type_T *uf_ret_type; // return type
garray_T uf_type_list; // types used in arg and return types
int *uf_def_arg_idx; // instruction indexes for evaluating
// uf_def_args; length: uf_def_args.ga_len + 1
char_u *uf_va_name; // name from "...name" or NULL
type_T *uf_va_type; // type from "...name: type" or NULL