v/vlib/v/parser/tests
Ned Palacios b9cbb4f177
scanner: fix eof token position (#9432)
2021-03-23 08:51:09 +01:00
..
README.md
anon_fn_return_type.out token: fix Token.str() for punctuation and operators (#8610) 2021-02-07 03:40:00 +01:00
anon_fn_return_type.vv parser: add errors for invalid anonymous function (#7786) 2021-01-05 01:32:24 +01:00
anon_unused_param.out parser: require anonymous fn to use `_` for unused parameters (#9262) 2021-03-12 14:17:37 +02:00
anon_unused_param.vv parser: require anonymous fn to use `_` for unused parameters (#9262) 2021-03-12 14:17:37 +02:00
array_init.out parser: improve array init warning (#8024) 2021-01-13 06:03:23 +01:00
array_init.vv parser: improve array init warning (#8024) 2021-01-13 06:03:23 +01:00
array_pos_err.out
array_pos_err.vv
c_struct_no_embed.out
c_struct_no_embed.vv
const_index.out parser: disallow indexing on next line at top-level (#8128) 2021-01-17 05:30:41 +01:00
const_index.vv parser: disallow indexing on next line at top-level (#8128) 2021-01-17 05:30:41 +01:00
dec_use_as_value.out
dec_use_as_value.vv
duplicate_field_embed_err.out
duplicate_field_embed_err.vv
duplicate_type_a.out
duplicate_type_a.vv
duplicate_type_b.out
duplicate_type_b.vv
duplicated_generic_err.out all: implement multiple generics (#8231) 2021-01-22 13:49:56 +01:00
duplicated_generic_err.vv all: implement multiple generics (#8231) 2021-01-22 13:49:56 +01:00
expected_type_enum_err.out
expected_type_enum_err.vv
expecting_assign_type_alias.out
expecting_assign_type_alias.vv
expr_evaluated_but_not_used_a.out
expr_evaluated_but_not_used_a.vv
expr_evaluated_but_not_used_b.out
expr_evaluated_but_not_used_b.vv
expr_evaluated_but_not_used_c.out
expr_evaluated_but_not_used_c.vv
expr_evaluated_but_not_used_d.out parser: check not used expression for all exprs in multi-expr (#8733) 2021-02-15 17:41:04 +02:00
expr_evaluated_but_not_used_d.vv parser: check not used expression for all exprs in multi-expr (#8733) 2021-02-15 17:41:04 +02:00
expr_evaluated_but_not_used_e.out parser: check not used expression for all exprs in multi-expr (#8733) 2021-02-15 17:41:04 +02:00
expr_evaluated_but_not_used_e.vv parser: check not used expression for all exprs in multi-expr (#8733) 2021-02-15 17:41:04 +02:00
expr_evaluated_but_not_used_if.out
expr_evaluated_but_not_used_if.vv
expr_evaluated_but_not_used_or.out
expr_evaluated_but_not_used_or.vv
fn_attributes_duplicate_multiple.out
fn_attributes_duplicate_multiple.vv
fn_attributes_duplicate_single.out
fn_attributes_duplicate_single.vv
fn_attributes_empty_err.out
fn_attributes_empty_err.vv
fn_decl_unexpected_eof.out scanner: fix eof token position (#9432) 2021-03-23 08:51:09 +01:00
fn_decl_unexpected_eof.vv scanner: fix eof token position (#9432) 2021-03-23 08:51:09 +01:00
fn_type_only_args_in_interfaces.out types: rename `any_*`, `untyped *` -> `* literal` (#7845) 2021-01-04 00:11:09 +02:00
fn_type_only_args_in_interfaces.vv
fn_type_only_args_no_body.out
fn_type_only_args_no_body.vv
fn_type_only_args_unknown_name.out
fn_type_only_args_unknown_name.vv
fn_use_builtin_err.out
fn_use_builtin_err.vv
for.out
for.vv
for_in_mut_index_of_array.out parser: check for_in mut key (#8235) 2021-01-21 12:46:15 +01:00
for_in_mut_index_of_array.vv parser: check for_in mut key (#8235) 2021-01-21 12:46:15 +01:00
for_in_mut_key_of_map.out parser: check for_in mut key (#8235) 2021-01-21 12:46:15 +01:00
for_in_mut_key_of_map.vv parser: check for_in mut key (#8235) 2021-01-21 12:46:15 +01:00
function_variadic_arg_non_final.out checker: show position for variadic/shared/method argument errors (#8939) 2021-02-24 19:35:32 +01:00
function_variadic_arg_non_final.vv checker: show position for variadic/shared/method argument errors (#8939) 2021-02-24 19:35:32 +01:00
generic_lowercase_err.out all: implement multiple generics (#8231) 2021-01-22 13:49:56 +01:00
generic_lowercase_err.vv all: implement multiple generics (#8231) 2021-01-22 13:49:56 +01:00
if_guard_redefinition.out parser: fix if-guard redefinition (#9425) 2021-03-23 04:38:36 +01:00
if_guard_redefinition.vv parser: fix if-guard redefinition (#9425) 2021-03-23 04:38:36 +01:00
inc_use_as_value.out
inc_use_as_value.vv
interface_duplicate_interface_method.out interfaces: error on implemention of own interface method & on duplicate normal methods 2021-03-03 15:02:10 +11:00
interface_duplicate_interface_method.vv interfaces: error on implemention of own interface method & on duplicate normal methods 2021-03-03 15:02:10 +11:00
interface_duplicate_method.out interfaces: error on implemention of own interface method & on duplicate normal methods 2021-03-03 15:02:10 +11:00
interface_duplicate_method.vv interfaces: error on implemention of own interface method & on duplicate normal methods 2021-03-03 15:02:10 +11:00
invalid_fn_decl_script_err.out parser: proper error on fn decl in script mode (#7680) 2020-12-30 21:18:36 +02:00
invalid_fn_decl_script_err.vv parser: proper error on fn decl in script mode (#7680) 2020-12-30 21:18:36 +02:00
invalid_recursive_struct1_err.out parser: error on recursive struct (#7964) 2021-01-09 01:33:36 +01:00
invalid_recursive_struct1_err.vv parser: error on recursive struct (#7964) 2021-01-09 01:33:36 +01:00
invalid_recursive_struct2_err.out parser: error on recursive struct (#7964) 2021-01-09 01:33:36 +01:00
invalid_recursive_struct2_err.vv parser: error on recursive struct (#7964) 2021-01-09 01:33:36 +01:00
long_generic_err.out all: implement multiple generics (#8231) 2021-01-22 13:49:56 +01:00
long_generic_err.vv all: implement multiple generics (#8231) 2021-01-22 13:49:56 +01:00
map_init.out parser: assure explicit `map` init contains no parameters (#8299) 2021-01-24 01:06:43 +02:00
map_init.vv parser: assure explicit `map` init contains no parameters (#8299) 2021-01-24 01:06:43 +02:00
map_init_void.out parser: assure explicit `map` init contains no parameters (#8299) 2021-01-24 01:06:43 +02:00
map_init_void.vv parser: assure explicit `map` init contains no parameters (#8299) 2021-01-24 01:06:43 +02:00
map_init_void2.out parser: assure explicit `map` init contains no parameters (#8299) 2021-01-24 01:06:43 +02:00
map_init_void2.vv parser: assure explicit `map` init contains no parameters (#8299) 2021-01-24 01:06:43 +02:00
match_range_dotdot_err.out
match_range_dotdot_err.vv
method_decl_on_non_local_array.out
method_decl_on_non_local_array.vv
method_decl_on_non_local_map.out
method_decl_on_non_local_map.vv
method_decl_on_non_local_type.out
method_decl_on_non_local_type.vv
module_multiple_names_err.out parser: improve syntax errors in module declarations 2021-03-11 10:42:36 +02:00
module_multiple_names_err.vv parser: improve syntax errors in module declarations 2021-03-11 10:42:36 +02:00
module_syntax_err.out parser: improve syntax errors in module declarations 2021-03-11 10:42:36 +02:00
module_syntax_err.vv parser: improve syntax errors in module declarations 2021-03-11 10:42:36 +02:00
multi_argumented_assign_err.out parser: fix the position of the multi variable += assign error (#7584) 2020-12-26 19:48:58 +02:00
multi_argumented_assign_err.vv parser: fix the position of the multi variable += assign error (#7584) 2020-12-26 19:48:58 +02:00
nested_unsafe_expr.out
nested_unsafe_expr.vv
nested_unsafe_stmt.out
nested_unsafe_stmt.vv
operator_normal_fn.out parser: error if operators are used as function names (#7532) 2020-12-24 13:38:11 +02:00
operator_normal_fn.vv parser: error if operators are used as function names (#7532) 2020-12-24 13:38:11 +02:00
or_default_missing.out parser: support `x = a[k] ?` propagation for arrays and maps (#8199) 2021-01-19 14:46:47 +02:00
or_default_missing.vv parser: support `x = a[k] ?` propagation for arrays and maps (#8199) 2021-01-19 14:46:47 +02:00
postfix_err.out
postfix_err.vv
postfix_inc.out parser: improve printing of unexpected tokens (#8654) 2021-02-09 17:07:30 +02:00
postfix_inc.vv parser: require ++/-- to be on the same line as the previous token (#8621) 2021-02-07 23:10:16 +01:00
prefix_first.out
prefix_first.vv
select_bad_key_1.out
select_bad_key_1.vv
select_bad_key_2.out
select_bad_key_2.vv
select_bad_key_3.out
select_bad_key_3.vv
select_bad_key_4.out
select_bad_key_4.vv
select_else_1.out
select_else_1.vv
select_else_2.out
select_else_2.vv
string_invalid_prefix_err.out
string_invalid_prefix_err.vv
struct_embed_duplicate.out
struct_embed_duplicate.vv
struct_embed_unknown_module.out
struct_embed_unknown_module.vv
struct_embed_wrong_pos_long_err.out parser: proper error when declaring struct embedding at the wrong pos (#7920) 2021-01-06 15:46:36 +01:00
struct_embed_wrong_pos_long_err.vv parser: proper error when declaring struct embedding at the wrong pos (#7920) 2021-01-06 15:46:36 +01:00
struct_embed_wrong_pos_short_err.out parser: proper error when declaring struct embedding at the wrong pos (#7920) 2021-01-06 15:46:36 +01:00
struct_embed_wrong_pos_short_err.vv parser: proper error when declaring struct embedding at the wrong pos (#7920) 2021-01-06 15:46:36 +01:00
struct_field_expected.out parser: improve printing of unexpected tokens (#8654) 2021-02-09 17:07:30 +02:00
struct_field_expected.vv token: fix Token.str() for punctuation and operators (#8610) 2021-02-07 03:40:00 +01:00
struct_module_section.out parser: support `module:` for immutable private struct fields (#8140) 2021-01-17 05:39:44 +01:00
struct_module_section.vv parser: support `module:` for immutable private struct fields (#8140) 2021-01-17 05:39:44 +01:00
struct_update_err.out parser: improve printing of unexpected tokens (#8654) 2021-02-09 17:07:30 +02:00
struct_update_err.vv parser: struct updating syntax with `Abc{...oldabc newfield: val}` (#7865) 2021-01-04 20:19:03 +02:00
too_many_generics_err.out all: implement multiple generics (#8231) 2021-01-22 13:49:56 +01:00
too_many_generics_err.vv all: implement multiple generics (#8231) 2021-01-22 13:49:56 +01:00
type_alias_existing_type_err.out
type_alias_existing_type_err.vv
type_alias_same_type_err.out
type_alias_same_type_err.vv
uncomplete_module_call_err.out parser: improve printing of unexpected tokens (#8654) 2021-02-09 17:07:30 +02:00
uncomplete_module_call_err.vv parser: fix error when accessing module without name after dot (#7530) 2020-12-25 16:50:08 +02:00
unexpected_expr.out parser: improve printing of unexpected tokens (#8654) 2021-02-09 17:07:30 +02:00
unexpected_expr.vv parser: improve printing of unexpected tokens (#8654) 2021-02-09 17:07:30 +02:00
unexpected_keyword.out parser: fix method name test 2021-02-04 22:25:58 +01:00
unexpected_keyword.vv parser: improve the error message for unexpected keywords 2021-01-25 15:29:07 +02:00
unnecessary_mut.out
unnecessary_mut.vv
unnecessary_mut_2.out
unnecessary_mut_2.vv

README.md

Put here tests, ensuring that the v's parser errors for certain situations.