Commit graph

42 commits

Author SHA1 Message Date
yuyi
19f080ffb8
all: change single blank comment to blank line (#22016) 2024-08-09 14:55:58 +03:00
Felipe Pena
cc14272444
cgen, checker: fix generic variable resolution on generic func return assignment (#21712) 2024-06-23 10:28:56 +03:00
Delyan Angelov
84fbe2728d
builtin,v: reduce overhead and memory usage for very frequently called methods (#21540) 2024-05-21 09:11:56 +03:00
Felipe Pena
24d157205b
cgen: force C struct types which does not implement str() to be passed as ptr (#21054) 2024-03-21 00:24:38 +02:00
shove
14f3c950be
cgen: fix escape of non-ascii characters in string interpolation (fix #20432) (#20437) 2024-01-09 02:07:42 +02:00
yuyi
34da4c97ea
ast: add has_option_or_result() and cleanup all the related calls (#20434) 2024-01-08 17:59:58 +02:00
Anton
763f94388b
all: update copyright year (#20334) 2024-01-01 23:29:54 +02:00
Delyan Angelov
923b410d4d
x.vweb: fix $vweb.html() integration in cgen for the newer x.vweb module (fix #20204) 2023-12-30 23:05:07 +02:00
Felipe Pena
9c4e494383
v: comptime refactor and cleanup (#20196) 2023-12-19 23:57:03 +02:00
shove
5abeb415ad
cgen: fix string interp with zero characters (fix #20199) (#20200) 2023-12-17 12:53:05 +02:00
penguindark
ae16878272
all: add r and R switches for repeating in string interpolation, '${"abc":3r}' == 'abcabcabc' (#20197) 2023-12-17 13:23:17 +03:00
shove
8957572e1d
checker, cgen: rename the field name inside_casting_to_str to inside_interface_deref (#19941) 2023-11-20 10:33:00 +02:00
shove
1a3d107016
ast, checker, cgen: extract common methods into ast.Table (#19859) 2023-11-13 18:09:36 +02:00
Turiiya
9051ac8921
all: fix typos (#19634) 2023-10-23 21:21:15 +03:00
yuyi
ec0d5dd258
checker, cgen: fix printing smartcast interface variable (fix #18886) (#19372) 2023-09-17 19:44:13 +03:00
shove
9f5e9ba1cf
cgen: fix an error with ptr interpolation (fix #19048) (#19049) 2023-08-03 11:18:22 +03:00
Felipe Pena
6bfa6ec93c
cgen: fix comptime interpolation (#18281) 2023-05-27 20:41:40 +02:00
Felipe Pena
c63902baf0
checker, cgen: fix generic resolution for comptimeselector and indirection checking on generic funcs (#18043) 2023-04-26 22:49:50 +03:00
Alexander Medvednikov
6756d28595 all: 2023 copyright 2023-03-28 22:55:57 +02:00
Swastik Baranwal
e9a3817aed
checker: disallow enum initalization (#17361) 2023-02-19 22:22:07 +01:00
yuyi
d3e4058aec
cgen: fix printing for mut v in arr (#17137) 2023-01-28 10:15:28 +02:00
yuyi
017ace6ea7
vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
shove
26d643fc5d
all: rollback to old interpolation (step 3) (#16380) 2022-11-10 15:05:34 +03:00
Alexander Medvednikov
18c7da9a5e all: new string interpolation "hello {name}!" 2022-10-27 11:01:01 +03:00
zakuro
a46bcf3571
all: v.ast.byte_type -> v.ast.u8_type (#14964) 2022-07-06 13:32:30 +03:00
Daniel Däschle
08fd0ce0de
all: basic implementation of result type (#14140) 2022-04-30 01:59:14 +03:00
yuyi
5dce091379
checker, cgen: fix generic empty interface to multi struct (#14132) 2022-04-22 11:02:51 +03:00
Alexander Medvednikov
014c3c97f0 all: byte => u8 2022-04-15 14:45:52 +03:00
yuyi
f7feb634d2
checker: fix error for if mut with immutable variable (#13728) 2022-03-13 16:33:50 +02:00
yuyi
ffe6ff3cc8
cgen: fix error for print smartcast variable (#13634) 2022-03-02 12:32:54 +02:00
yuyi
7178367de0
all: fix error for comptime for in field with generic fn (fix #13409) (#13439) 2022-02-11 22:00:13 +02:00
Alexander Medvednikov
59ed4be49a all: update copyright year 2022-01-04 12:21:12 +03:00
yuyi
cd0b581445
ast: rename 'table.get_type_symbol()' to 'table.sym()' and more related calls (#12898) 2021-12-19 18:25:18 +02:00
yuyi
f60cf65284
cgen: fix comptime for_in methods call using str_intp (#12746) 2021-12-07 12:12:12 +03:00
yuyi
ae2ae6e6fd
cgen: fix match sumtype var aggregate str_intp error (#12732) 2021-12-05 19:21:45 +02:00
yuyi
d1b0ce9e0c
cgen: fix error of the interface str method (fix #12538) (#12620) 2021-11-30 15:03:44 +02:00
yuyi
bede0587ad
cgen: fix string interliteral of the comptime selector (#12475) 2021-11-16 08:45:47 +02:00
Delyan Angelov
b5d8c53a0c
v.gen.c: fix the :X string interpolation format for isize/usize on 64bit systems 2021-09-19 05:09:03 +03:00
penguindark
bd10a63839
builtin: string interpolation: binary format support (#11421) 2021-09-07 00:12:54 +03:00
Alexander Medvednikov
65126efdc3 builtin: remove u8 for now 2021-07-28 22:36:04 +03:00
El Koulali András
dacfb71820
cgen: fix string interpolation where the expression generates multiple C statements (#10674) 2021-07-06 09:04:29 +03:00
penguindark
d8d05e0106
all: new string interpolation in pure V (#10181) 2021-05-24 05:20:45 +03:00