Felipe Pena
9a9cfe425c
all: comptime type lowercase ($int, $enum, $option, etc) ( #17732 )
2023-03-23 00:02:42 +01:00
yuyi
d349c1d86d
checker: check generic fn call argument type mismatch ( #17680 )
2023-03-16 21:19:03 +02:00
Felipe Pena
785546f277
json2: fix decode result with option fields ( #17561 )
2023-03-08 20:54:28 +01:00
Felipe Pena
6b20bddd15
cgen, json2: fix auto str option type generator, and json2 option type handling ( #17388 )
2023-02-24 10:54:45 +02:00
Felipe Pena
2879c5110c
cgen, check, parser: implement first-class option type ( #17017 )
2023-02-18 11:45:01 +02:00
Ahmad Yasser
cad2cd5583
docs: fix typos using codespell ( #17332 )
2023-02-16 11:43:39 +02:00
Felipe Pena
039c9b2550
cgen, checker: fix comptimeselector resolution + if comptime branching improvement + comptimeselector cleanup ( #17302 )
2023-02-15 11:40:11 +02:00
Makhnev Petr
c8c70de87d
docs: unify format of notes ( #17294 )
2023-02-13 10:29:02 +02:00
Hitalo Souza
ed58b95a9d
json2: encode array of all and verify sum type ( #17051 )
2023-02-01 15:52:58 +01:00
Hitalo Souza
0ac6ba9354
json2: encode sumtype ( #17041 )
2023-01-21 20:26:55 +02:00
Hitalo Souza
1d51f3109f
json2: improve the performance of encode ~2x ( #17050 )
2023-01-21 10:45:38 +02:00
Hitalo Souza
525c5e237a
x.json2: add json2.map_from(t T) ( #16797 )
2023-01-18 18:55:04 +02:00
Hitalo Souza
55787ff78f
json2: refactor, doc, perf, test, errors ( #16986 )
2023-01-15 22:52:48 +01:00
Hitalo Souza
7db7951bd0
x.json2: fix : #16975 ( #16983 )
...
* fix : #16975
* test
* Update vlib/x/json2/json2.v
Co-authored-by: Delyan Angelov <delian66@gmail.com>
* minor refactor
Co-authored-by: Delyan Angelov <delian66@gmail.com>
2023-01-15 22:09:02 +02:00
Hitalo Souza
28cbaf66b8
json2: refactoring and fixes ( #16893 )
2023-01-15 12:30:33 +02:00
Hitalo Souza
199db81b23
json2: refactor after #16951 ( #16976 )
2023-01-14 21:30:29 +02:00
Hitalo Souza
d1306ffcf5
checker,json2: relax checking of x.enum = integer at comptime; refactor json2 to clean it up ( #16926 )
2023-01-11 10:18:45 +02:00
Hitalo Souza
cf95d77584
json2: small refactor after #16896 ( #16911 )
2023-01-10 11:08:11 +02:00
Hitalo Souza
33a99fe833
json2: fix encoding of struct fields that are aliases ( #16925 )
2023-01-09 22:43:01 +02:00
JalonSolov
90941b3b1f
all: change optional to option ( #16914 )
2023-01-09 09:36:45 +03:00
Swastik Baranwal
da68b2d369
checker: remove c.pref.is_test
exception for calling private methods in _other_ modules ( #16872 )
2023-01-05 15:41:18 +02:00
Hitalo Souza
8f217c00e5
x.json2: refactor/fix json2.encode, add more tests ( #16790 )
2023-01-05 15:17:38 +02:00
Hitalo Souza
2e54a8cb0e
x.json2: update tests ( #16847 )
2023-01-03 10:16:36 +02:00
yuyi
1c151fbec9
cgen: fix struct optional field zero init ( #16814 )
2022-12-31 17:36:14 +02:00
Delyan Angelov
3c920f2ee6
x.json: fix parsing of time fields, that have just a single date encoded inside the parsed string ( fix #16722 )
2022-12-20 16:34:09 +02:00
Hitalo Souza
70bb989537
doc: update the README for json2 ( #16657 )
2022-12-14 10:21:29 +02:00
Hitalo Souza
b682e9ec0b
json2: decode time.Time, supporting unix timestamps (like json
), as well as rfc3339 datetimes ( #16653 )
2022-12-12 10:06:29 +02:00
Hitalo Souza
d7c244e5ec
x.json2: support time.Time values in encode ( #16643 )
...
* feat: json2 time.Time encode
* refactor: best var name
* fix: use 'RFC 3339' as pattern in json encode
* fix: unused var for unaliased_typ
* fix: improve test
* use the clearer test after V ad24c22
, that made format_rfc3339 more stable
Co-authored-by: Delyan Angelov <delian66@gmail.com>
2022-12-11 16:54:28 +02:00
Hitalo Souza
e8c0b098b0
x.json2: add encode_pretty/1 ( #16634 )
2022-12-10 20:44:23 +02:00
Hitalo Souza
30b39bebde
x.json2: refactor json tests ( #16638 )
2022-12-10 18:44:20 +02:00
Hitalo Souza
b6c2aab092
json2: support encoding of optional struct fields ( #16521 )
2022-12-09 18:08:24 +02:00
Delyan Angelov
48a7de643e
all: support typeof[ T ]().idx and typeof[ T ]().name, where T can be any type, including ![]&string
( #16513 )
2022-12-07 11:26:27 +02:00
Hitalo Souza
5288c613ef
json2: decode refactor/fix ( #16588 )
2022-12-05 16:58:44 +02:00
yuyi
50110d4c19
all: replace generic '<>' with '[]' in .vv files ( #16593 )
2022-12-05 16:32:15 +02:00
yuyi
ef5be22f81
all: replace generic <>
with []
- part 2 ( #16536 )
2022-11-26 18:23:26 +02:00
Hitalo Souza
45854882b9
builtin, cgen: support FieldData.unaliased_typ, use it for generalising x.json2
(able to encode type aliased struct fields) ( #16469 )
2022-11-20 11:18:14 +02:00
Delyan Angelov
6b0743bb07
x.json2: add support for i8, i16, u8, u16, u32 ( fix #16484 )
2022-11-19 12:03:04 +02:00
Hitalo Souza
74613bd636
x.json2: generic-based encoder (finish PR#15137) ( #16464 )
2022-11-18 11:09:24 +02:00
yuyi
017ace6ea7
vfmt: change all '$expr' to '${expr}' ( #16428 )
2022-11-15 16:53:13 +03:00
Junko
5bb058e35b
gg: revamp the Context
pipeline for more effects, implement an additive
effect ( #16394 )
2022-11-12 09:39:18 +02:00
Taegon Kim
d4c83f62b2
doc: fix a broken example in json2
's README.md ( #16293 )
2022-11-02 19:29:43 +02:00
Alexander Medvednikov
c6158e4519
all: remove unnecessary IError() casts
2022-10-28 19:08:30 +03:00
yuyi
9242d4b79b
json2: minor cleanup in README.md ( #16096 )
2022-10-18 18:00:14 +03:00
yuyi
f6844e9766
all: change optional to result of io ( #16075 )
2022-10-16 09:28:57 +03:00
Swastik Baranwal
b584e1df98
checker: allow EnumName(number)
casts only inside unsafe{}
blocks ( #15932 )
2022-10-02 22:39:11 +03:00
Larpon
816e9319d7
cgen: remove the need for [console] for gg or ui programs on windows ( #15912 )
2022-09-29 15:02:50 +03:00
yuyi
41dbd12bc4
tests: make error handling the same as the main function ( #15825 )
2022-09-21 19:45:43 +03:00
shove
8b962f8446
checker: fix nested struct reference type field initialized check. ( fix : #15741 ) ( #15752 )
2022-09-15 07:59:31 +03:00
penguindark
706a922e0c
x.ttf: update to fix compilation of vlang/pdf and failing ci ( #15109 )
2022-07-17 19:44:11 +03:00
penguindark
df4bd88d45
x.ttf: fix a bug in TTF fixed point data management ( #14987 )
2022-07-08 09:20:59 +03:00