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

84 Commits

Author SHA1 Message Date
yuyi
e01dac885c
builtin: fix m.len to 0, after calling map.clear() () 2022-12-22 21:36:33 +02:00
yuyi
017ace6ea7
vfmt: change all '$expr' to '${expr}' () 2022-11-15 16:53:13 +03:00
yuyi
a5aad6f791
cgen: fix alias of map delete () 2022-09-03 10:41:53 +03:00
Alexander Medvednikov
9099594a49 all: wrap up unsafe { nil } (p. 3) 2022-07-21 21:01:30 +03:00
CC
901b8f0c24
builtin: add a map.clear() method () 2022-05-12 09:43:01 +03:00
Hunam
0699f324b5
builtin: add map.values() () 2022-05-06 20:42:01 +03:00
Nick Treleaven
d8a5df9044
checker: error if smaller signed == unsigned () 2022-04-25 12:09:25 +03:00
Nick Treleaven
1533b77404
builtin: remove unnecessary casts for defunct small unsigned warning () 2022-04-20 21:47:09 +03:00
Alexander Medvednikov
fbb9e65c0f all: ~500 more byte=>u8 2022-04-15 18:25:45 +03:00
Alexander Medvednikov
d4a0d6f73c all: byte => u8 2022-04-15 14:58:56 +03:00
Nick Treleaven
c780de6282
checker: disallow 'small_unsigned == signed' () 2022-04-12 19:37:30 +03:00
Delyan Angelov
6ff953d936
preludes,builder,cgen: add support for VTEST_RUNNER=tap and -test-runner tap () 2021-12-16 15:59:46 +02:00
Daniel Däschle
800c0e5092
vlib: remove deprecated map{} usages as well as deprecated functions () 2021-08-04 12:44:41 +03:00
yuyi
afc81277be
v.gen.c: fix assigning a fixed array variable to a map value () 2021-06-20 08:09:24 +03:00
ka-weihe
4348c2322d
builtin.map: test more key types () 2021-05-01 14:26:20 +03:00
ka-weihe
6795b02e24
cgen: fix enum in map () 2021-04-28 22:11:32 +03:00
ka-weihe
3edbf71770
parser: fix maps with aliases as key () 2021-04-28 07:45:21 +03:00
ka-weihe
bca9409192
map: wrap up delete fix () 2021-04-07 14:12:12 +02:00
Alexander Medvednikov
ff9837386a Revert "map: wrap up delete fix ()"
This reverts commit cbcc0d34b5.
2021-04-07 03:40:43 +03:00
ka-weihe
cbcc0d34b5
map: wrap up delete fix () 2021-04-06 15:57:08 +02:00
Delyan Angelov
d11fb8497a
ci: fix some of v test-cleancode 3 2021-04-05 21:21:46 +03:00
ka-weihe
337e447cfb
map: fix delete (part 1) () 2021-04-04 01:11:47 +02:00
ka-weihe
2991cad4e8
map: fix delete in for-in () 2021-03-17 01:42:33 +01:00
yuyi
9a744b6750
cgen: fix in map_literal (fix ) () 2021-02-21 11:54:30 +02:00
Nick Treleaven
9e751f72c4
doc, fmt: use map{key: value} syntax for map literals () 2021-02-08 16:57:42 +02:00
Nick Treleaven
f5f65f929f
parser: parse map{key_expr: val_expr} () 2021-02-06 22:13:24 +01:00
yuyi
77b3d40f46
checker: fix map = {} () 2021-01-30 11:55:10 +01:00
Nick Treleaven
38e0aa350d
checker: support non-string map.keys method () 2021-01-03 15:55:06 +01:00
Swastik Baranwal
dee3bbffe9
cgen: support .str() for maps with non string keys () 2021-01-02 20:25:46 +02:00
Nick Treleaven
0a069dee79
gen: support non-string map equality and speed it up () 2021-01-01 20:54:49 +01:00
Nick Treleaven
9243e06dba
parser: allow integer and rune keys for map literal () 2021-01-01 17:23:32 +01:00
ka-weihe
93262353d6
cgen: fix map exists bug () () 2020-12-28 18:32:51 +01:00
yuyi
547df57316
cgen: fix gen_map_equality_fn() () 2020-12-28 12:22:14 +02:00
Nick Treleaven
e813583bc1
checker: support integer and voidptr key types for maps () 2020-12-27 14:18:46 +01:00
Nick Treleaven
0edec06eac
gen: use new_map, new_map_init_1 functions () 2020-12-21 14:37:19 +01:00
Alexander Medvednikov
1f74f83bc6 parser: map or block; checker: require ref field init 2020-12-19 10:28:17 +01:00
yuyi
598d18cbd9
cgen: fix default zero in map fields (fix ) () 2020-12-19 06:55:13 +01:00
Ned Palacios
c164586fd5
cgen: fix map clone () 2020-12-17 08:44:50 +01:00
Nick Treleaven
ae460a2208
map: make DenseArray.has_index not assume string keys () 2020-12-13 02:05:56 +01:00
ka-weihe
96d28b4485
map: more tests () 2020-12-06 01:28:11 +01:00
Uwe Krüger
c1b25dd61d
cgen: fix map value op-assign modification () 2020-12-03 00:40:11 +01:00
Delyan Angelov
7feb1742d3 cgen: skip deleted map entries in the auto generated .str() method 2020-11-13 13:37:11 +02:00
Ned Palacios
a2a0765eff
cgen: fix setting map elements' fields () 2020-10-31 13:00:04 +01:00
Swastik Baranwal
d77669da80
test: add tests for disallowing map/array get element/key address () 2020-10-05 18:40:51 +03:00
Ruofan XU
a2395ff3e8
cgen: fix mut map with relation op in fn () 2020-07-03 18:07:11 +02:00
yuyi
dff385cb37
cgen: fix map_in mut () 2020-07-03 17:33:53 +03:00
yuyi
6cbc0e84f0
cgen: fix cross assign with mutable args (fix ) () 2020-07-02 11:09:26 +02:00
yuyi
92eea7f95a
cgen: fix map cross assign () 2020-07-01 14:03:12 +02:00
Delyan Angelov
ca1f47a742 cgen: fix for k,_ in map { x << k } 2020-07-01 11:49:02 +03:00
Delyan Angelov
78e1127d99
cgen: treat the main module like any other v module 2020-07-01 00:53:53 +02:00