1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

1613 Commits

Author SHA1 Message Date
yuyi
ef7f9779a3 parser, checker: fix postfix expr check (fix #14852) (#14857) 2022-06-27 04:28:24 +03:00
yuyi
546f9a544f parser: fix a typo in an error message (#14848) 2022-06-26 00:04:08 +03:00
yuyi
c64c4907a2 parser: check closure var name conflict (#14823) 2022-06-22 09:04:15 +03:00
yuyi
c160ba2a8d checker: stricter mutable reference check (fix #14803) (#14805) 2022-06-21 13:23:21 +03:00
Delyan Angelov
0e4198f23b tools: fix v vet file.v for return if x { y // comment } else { z } 2022-06-20 13:29:22 +03:00
Alexander Medvednikov
10051e005a parser, cgen: temporary prefix ++ for translated code 2022-06-18 13:30:47 +03:00
yuyi
3535927bcd parser: correct error message for seclector_expr_assign.vv (#14747) 2022-06-12 20:29:54 +03:00
yuyi
fcaf529228 parser, checker: check undefined ident in if expr using generic type name (#14734) 2022-06-10 11:57:26 +03:00
Delyan Angelov
ed759b2ec9 ci: vfmt vlib/v/parser/parser.v 2022-06-02 15:55:13 +03:00
Delyan Angelov
031629faa1 tools: add cmd/tools/measure/scanner_speed.v and cmd/tools/measure/parser_speed.v 2022-06-02 13:50:25 +03:00
yuyi
10fb16e00b parser: fix optional with multiple statements (#14592) 2022-06-02 08:23:16 +03:00
yuyi
786045c7da parser: fix comptime if script mode (fix #6419) (#14578) 2022-06-01 13:27:27 +03:00
Delyan Angelov
846ddfd728 v: always embed file data of \$embed_file(file) constructs, even without -prod, unless -d embed_only_metadata is given. 2022-06-01 09:08:18 +03:00
yuyi
79d861ad4f parser: fix cast or dump arguments ending with comma (#14552) 2022-05-29 09:15:55 +03:00
yuyi
b8e8768928 parser, cgen: fix cross assign with parentheses (#14545) 2022-05-28 12:02:17 +03:00
yuyi
a971b9a99a parser: fix match expr case with struct init (#14538) 2022-05-27 18:51:40 +03:00
yuyi
3849cdcecc fmt: fix fn return types list ending with comma (#14529) 2022-05-26 04:20:22 +03:00
Delyan Angelov
410b57b2fa all: add support for struct field deprecation (#14527) 2022-05-26 00:44:18 +03:00
Larpon
6c08af63ff embed_file: rename debug_embed_file_in_prod -> force_embed_file (#14523) 2022-05-25 18:26:17 +03:00
yuyi
79a75c5ac0 parser: fix fmt error for json decode (#14520) 2022-05-25 08:59:22 +03:00
yuyi
a5b98cb267 parser: check fn decl multi return types without parentheses (#14508) 2022-05-24 05:15:31 +03:00
yuyi
4ef9e2c05a parser: fix sizeof(c'str') (fix #14499) (#14502) 2022-05-23 01:59:39 +03:00
yuyi
28b0cbddad parser: check error for script mode that define main function (fix #14467) (#14469) 2022-05-20 14:20:18 +03:00
StunxFS
11bdb04d0c json: fix struct field default value support (#14304) 2022-05-20 11:22:17 +03:00
yuyi
15c62bc8e8 parser: improve error messages of 'for val in array' (#14459) 2022-05-19 11:53:27 +03:00
Delyan Angelov
809b1ca3b4 Revert "parser: fix 'val in array' as condition in for stmt (fix #14440) (#14451)"
This reverts commit b482c0512b.
2022-05-19 08:29:30 +03:00
yuyi
b482c0512b parser: fix 'val in array' as condition in for stmt (fix #14440) (#14451) 2022-05-18 20:38:53 +03:00
Delyan Angelov
f2447a4bd8 tests: do not use -prod for compiling .vv files in vlib/v/checker/tests/ and vlib/v/parser/tests/ 2022-05-18 13:39:57 +03:00
Larpon
9de0c725f6 checker: add test for empty #flag node, (fix #14291) (#14447) 2022-05-18 13:38:58 +03:00
yuyi
d6aa85d059 parser: fix panic for parse invalid map type (#14431) 2022-05-17 12:05:10 +03:00
Alexander Medvednikov
b42c824cdb vweb: simplify @foo by removing V_TEMPLATE rule 2022-05-14 17:46:30 +03:00
Delyan Angelov
714ce4e7fc ci: fix .out regression after d407a64 2022-05-13 11:18:17 +03:00
Daniel Däschle
d407a6449d parser: fix dollar (closes #14292) (#14378) 2022-05-13 08:30:10 +03:00
Daniel Däschle
d679146a80 fmt: remove space in front of ? and ! (#14366) 2022-05-13 06:56:21 +03:00
Delyan Angelov
668d1b04d2 parser: make script mode errors more informative, when a top level declaration is encountered, after script mode had already started 2022-05-12 21:14:00 +03:00
yuyi
f48f7014f0 checker: check error for generic sumtype types (#14374) 2022-05-12 11:57:57 +03:00
yuyi
3afc7c4c6d parser: check error for generic struct parameter (#14362) 2022-05-11 13:24:54 +03:00
StunxFS
d24dce8eb3 parser,checker: support $compile_error('message') and $compile_warn('message') (#14320) 2022-05-09 08:18:26 +03:00
Delyan Angelov
7f974a275a docs: fix teh typo 2022-05-07 12:55:40 +03:00
yuyi
b6058bfd6e parser, checker: fix generic method on nested struct (fix #14089) (#14310) 2022-05-05 11:24:20 +03:00
yuyi
e2aa5c9b3f parser: make peek_token_after_var_list() private (#14288) 2022-05-04 19:25:45 +03:00
yuyi
d72a25098a parser: minor cleanup in interface_decl() (#14257) 2022-05-02 16:17:46 +03:00
yuyi
b9cf2db6a8 parser: fix inline array's element access (#14253) 2022-05-02 16:16:32 +03:00
spaceface
332e821518 checker, gen: add support for a [minify] struct attribute (#14247) 2022-05-02 01:59:17 +03:00
yuyi
cd30b6ea82 parser: make sure interface field names use uppercase letters (#14228) 2022-04-30 05:29:33 +03:00
Daniel Däschle
08fd0ce0de all: basic implementation of result type (#14140) 2022-04-30 01:59:14 +03:00
yuyi
ec865cfb37 parser: check interface methods name (fix #14217) (#14218) 2022-04-29 15:48:03 +03:00
yuyi
317acfda97 checker: check struct field name using uppercase letters (#14220) 2022-04-29 14:57:14 +03:00
yuyi
7aca67fb60 ast, parser: fix complex map init (#14206) 2022-04-28 17:37:19 +03:00
Alexander Medvednikov
7dbfa86f25 all: atomic int fixes 2022-04-27 18:31:21 +03:00