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

558 Commits

Author SHA1 Message Date
Uwe Krüger
cf230644b6 fmt: enable shared return types (#8614) 2021-02-06 21:25:06 +01:00
zakuro
fe9d062b41 gen: fix bug where unreached defer is executed (#8594) 2021-02-06 18:40:39 +02:00
Lukas Neubert
9ab1d17cbc fmt: keep __global in struct declarations (#8584) 2021-02-05 16:46:43 +01:00
Alexander Medvednikov
1084b43ffb all: ast walker for marking unused fns 2021-02-05 08:05:35 +01:00
Louis Schmieder
97c0ef3505 orm: struct field support (#8517) 2021-02-04 20:28:33 +01:00
BigBlack
162c42dbe9 ast: fix new_struct := MyStruct{...(*old_struct)} (#8544) 2021-02-04 09:14:43 +02:00
Nick Treleaven
de37b52d4b checker: check goto label exists (#8523) 2021-02-03 15:20:10 +01:00
Uwe Krüger
9dcf673216 all: make lock and rlock dead lock free :-) (#8534) 2021-02-03 15:16:52 +01:00
zakuro
4b99d6af95 cgen: fix bug with duplicate defer generation (#8503) 2021-02-03 11:40:21 +02:00
Daniel Däschle
d477e525bb checker/gen: fix generic struct init (#8322) 2021-02-03 00:42:00 +11:00
Lukas Neubert
8755f40430 fmt: keep comments after imports (#8483) 2021-02-01 14:45:08 +01:00
Lukas Neubert
43676330ba fmt: keep braces around @ escaped fields in string interpolation (#8488) 2021-02-01 11:04:57 +02:00
spaceface
effa3188dd cgen: fix type casts to interfaces (#8476) 2021-01-31 19:24:33 +02:00
Larpon
d25825df57 all: support compile time $env('ENV_VAR') (#8456) 2021-01-31 19:22:42 +02:00
Nick Treleaven
43c3a3b080 checker: fix compile-time call with string identifier expression (#8415) 2021-01-30 15:24:16 +01:00
div72
8c70920695 all: add offsetof (#8380) 2021-01-30 12:57:09 +01:00
Lukas Neubert
a044441224 fmt: keep {} in string interpolation for chained CallExprs (#8422) 2021-01-30 11:58:19 +01:00
Lukas Neubert
2774db077d fmt: keep user choice for newlines in match branches (#8418) 2021-01-30 11:57:57 +01:00
yuyi
77b3d40f46 checker: fix map = {} (#8435) 2021-01-30 11:55:10 +01:00
Swastik Baranwal
e03ece2a4b checker: check the fn decl for anon fns too (#7529) 2021-01-29 23:11:05 +02:00
Lukas Neubert
3790bd67e3 fmt: minor cleanup of sql_expr (#8340) 2021-01-26 10:36:46 +01:00
Daniel Däschle
006a11454f cgen: fix generic type $else $if (#8339) 2021-01-25 17:08:02 +01:00
Delyan Angelov
d4f6f5eec4 sokol,fontstash: move f_d_use_freetype.v to vlib/fontstash/a_d_use_freetype.v 2021-01-23 11:39:17 +02:00
Lukas Neubert
8b61891348 fmt: smarter if condition wrapping (#8201) 2021-01-23 10:33:22 +02:00
spaceface
c2d501e8a9 all: implement interface fields (#8259) 2021-01-23 08:57:17 +02:00
Louis Schmieder
e06e8b10cd orm: fix empty struct and simplify (#8246) 2021-01-22 23:28:26 +01:00
Daniel Däschle
500ebf77e4 all: implement multiple generics (#8231) 2021-01-22 13:49:56 +01:00
zakuro
522d875489 checker: make it an error, to use ident outside of anon fn (#8232) 2021-01-22 09:24:49 +02:00
Daniel Däschle
3ee7bc960f checker/gen: fix smartcast pointer sumtype (#8260) 2021-01-21 22:31:25 +02:00
joe-conigliaro
97ebecc5f4 usecache: get all tests running with -usecache enabled by default (p.1) (#7699) 2021-01-20 06:04:59 +01:00
Tim Basel
129eee346b fmt: keep single empty lines (#8189) 2021-01-19 14:49:40 +01:00
Lukas Neubert
b44c08aff0 fmt: wrap match branch expressions (#8190) 2021-01-19 06:16:42 +01:00
Lukas Neubert
ac2c3847af all: update copyright to 2019-2021 (#8029) 2021-01-18 13:20:06 +01:00
Lukas Neubert
16c9cbce7c fmt: correctly increase f.line_len for write_indent (#8174) 2021-01-18 06:02:29 +01:00
Nick Treleaven
df39e7001c parser: support module: for immutable private struct fields (#8140) 2021-01-17 05:39:44 +01:00
Delyan Angelov
c4c4b9c7b1 gen,checker: implement g.trace/2 and c.trace/2, similar to p.trace/2 2021-01-15 20:28:53 +02:00
Uwe Krüger
8d014d4646 sync: allow go routine join with return value (#8125) 2021-01-15 13:45:26 +01:00
zakuro
c39f0a7cb7 ast: add str for AssertStmt (#8021) 2021-01-15 00:17:26 +01:00
Larpon
f73500f2fe all: add support for the x := $embed_file('v.png') compile time call (#8048) 2021-01-14 16:20:11 +02:00
yuyi
a2efb5319d all: change [1,2,3]!! to [1,2,3]! (#8101) 2021-01-14 03:51:13 +01:00
zakuro
c8bcee9639 ast: add str for comment (#8019) 2021-01-14 02:21:27 +01:00
zakuro
fdf5f5003b ast: add str for ArrayInit (#8022) 2021-01-14 02:21:19 +01:00
zakuro
204cc5fb01 ast: add case for Import in fn (node Stmt) str() 2021-01-13 15:56:48 +02:00
zakuro
4923048d95 ast: add case for ConstDecl in fn (node Stmt) str() (#8073) 2021-01-13 15:54:41 +02:00
Nick Treleaven
ac85257ea0 parser: fix sizeof(mod.Type), fix checking sizeof expression (#8065) 2021-01-13 06:13:39 +01:00
zakuro
e8ab79205f ast: add str for Module (#8072) 2021-01-13 06:00:53 +01:00
zakuro
33694665f0 fmt: align each contiguous field of struct. not the whole. (#7981) 2021-01-12 04:38:43 +01:00
Lukas Neubert
5d6e9f7bf9 fmt: fix rare extra tab after a SumType (#8035) 2021-01-11 22:19:42 +01:00
Swastik Baranwal
1f5255c2bb cgen: implement >= and <= (#7991) 2021-01-10 12:24:46 +02:00
Lukas Neubert
31753f581f ast: remove redundant InfixExpr.str() (#7993) 2021-01-10 12:19:14 +02:00