Commit Graph

12535 Commits (ee6b23c2a780522c1a4ecf31eda44bf883c98954)

Author SHA1 Message Date
Joe Conigliaro 3b6e122d9d
all: comptime_call - update tmpl scope vars with caller scope vars after their properties got updated in checker 2022-03-01 02:13:29 +11:00
yuyi 0028e557f9
checker: cleanup smartcast in checker.v () 2022-02-28 17:06:37 +02:00
yuyi 9a2df0df0e
cgen: fix fn mut argument of interface type () 2022-02-28 13:31:04 +02:00
yuyi 013589e9fe
parser: minor cleanup in global_decl() () 2022-02-28 13:30:17 +02:00
Subhomoy Haldar a0d9e6e1c2
rand: extend PRNG interface, add buffering support () 2022-02-28 13:17:54 +02:00
yuyi efeb3e04da
ast: add table.is_sumtype_or_in_variant() () 2022-02-28 11:38:20 +03:00
yuyi 81c787ef91
checker: fix match expr with assign sumtype variable () 2022-02-28 11:37:59 +03:00
yuyi bc16c61f6f
parser: check using 'mut' on fn_decl return type () 2022-02-27 14:23:43 +02:00
yuyi 0fb1eaef04
parser: check the redefinition of built-in IError () 2022-02-26 09:52:40 +02:00
Mihai Galos 4215bb125c
examples: improve the sendbus example () 2022-02-26 09:50:44 +02:00
yuyi 0d9792bdf2
ast: cleanup in find_method_with_generic_parent() () 2022-02-26 02:11:56 +03:00
Larpon d80f5165dd
fmt: keep trailing comments after fn header decl () 2022-02-25 16:36:48 +03:00
yuyi 83ea97b1a3
parser: fix optional expr with array value () 2022-02-25 15:54:12 +03:00
Larpon 73f931b52e
fmt: improve single line const comment placement () 2022-02-25 14:46:12 +02:00
Delyan Angelov 9535d38645
ci: fix concurrency.group name for containers_ci.yml 2022-02-24 16:00:57 +02:00
Bastian Buck fa645516c3
crypto: implement Output Feedback (OFB) Mode for AES and DES () 2022-02-24 14:38:21 +02:00
Bastian Buck 0d07a64230
crypto: implement Counter (CTR) Mode for AES and DES () 2022-02-24 12:06:33 +02:00
Delyan Angelov 9523c23e14
ci: bump timeout-minutes to 25 for ci_cross.yml 2022-02-24 12:04:04 +02:00
yuyi d30ad344e8
checker: check error for array of sumtype appendding () 2022-02-24 11:07:03 +02:00
kahsa f6891c405a
doc: fix header size () 2022-02-24 10:51:10 +02:00
yuyi a28249c119
ast: fix for in iterator of generic struct (fix ) () 2022-02-24 10:48:52 +02:00
kahsa 9662b79662
doc: improve embedded struct section () 2022-02-23 15:54:00 +02:00
Subhomoy Haldar 114a341f5f
rand: simplify rand.PRNG, move to optional types for error handling () 2022-02-23 12:36:14 +02:00
Bastian Buck 5c0b7b0d05
crypto: implement Cipher Feedback (CFB) Mode for AES and DES () 2022-02-23 11:55:16 +03:00
yuyi b5e7cef1b1
ast: define 'const invalid_type_idx = -1' () 2022-02-23 11:54:43 +03:00
yuyi c3ec738126
checker: check struct field reference type mismatch () 2022-02-23 11:53:22 +03:00
gcxfd 838a8f2183
docs: improve the documentation for struct embedding () 2022-02-22 19:09:54 +02:00
mahdi ramezaan zaade 2712e43802
doc: add an example on how to get a cloned slice () 2022-02-22 17:22:33 +02:00
Delyan Angelov d2e8302d21
ci: show failing compilation output in draw_fns_api_test.v (make diagnostic easier) 2022-02-22 16:53:06 +02:00
yuyi 6486fffc5a
checker: cleanup `map = {}` processing () 2022-02-22 16:04:54 +02:00
Vincenzo Palazzo 6a876d4170
datatypes: small fix for the BST node constructor () 2022-02-22 15:41:30 +02:00
Larpon 1032cf5c04
checker: only cast as ast.Var if not unresolved, fixes () 2022-02-22 15:23:15 +02:00
Delyan Angelov 33d379d530
ci: vfmt vlib/net/socket.v 2022-02-22 15:21:20 +02:00
gcxfd ee1de06678
net: extract a common Socket struct, reuse it by embedding in TcpSocket & UdpSocket () 2022-02-22 10:34:38 +02:00
Vincenzo Palazzo 7bd8503170
datatypes: add a binary search tree implementation () 2022-02-22 10:28:01 +02:00
Delyan Angelov 4a765bc33b
cgen: support `-d trace_gen_source_line_info` 2022-02-21 23:04:10 +02:00
Delyan Angelov f2e5bb447e
os: remove dead code 2022-02-21 22:57:24 +02:00
yuyi 07e9ed1a1d
cgen: fix interface embedding method call () 2022-02-21 17:49:38 +02:00
playX b842e89acc
all: initial implementation of compile-time types () 2022-02-21 17:42:54 +02:00
yuyi 83cdd8bedd
ast: add comments for struct 'StructInit' and 'StructInitField' () 2022-02-21 12:48:53 +02:00
simon place 8ba4a3dd01
math.complex: make mutable the Complex.re and Complex.im fields () 2022-02-21 12:39:45 +02:00
kahsa 809772db4e
gg: improve Context scale for Android () 2022-02-21 12:12:21 +02:00
gcxfd 8b033c3993
tools: add a `-theme-dir folder/` parameter to `v doc` () 2022-02-21 12:08:46 +02:00
yuyi 04654ed518
parser: check error for defer propagate (fix ) () 2022-02-20 12:29:08 +02:00
yuyi 75ebac006d
cgen: fix struct init with multi nested embed update expr () 2022-02-19 20:46:44 +02:00
gcxfd dbae2d6af4
net: add UdpSocket.address() method () 2022-02-19 20:45:55 +02:00
yuyi 09f08e1fee
cgen: fix error for interface and embedded struct build () 2022-02-19 20:43:40 +02:00
eyun 67e33bf9bc
checker: make public the valid_comptime_if_os list () 2022-02-19 15:22:33 +02:00
eyun 2b974cdb97
docs: rename exec -> execute () 2022-02-19 15:20:46 +02:00
yuyi 0236931c78
cgen: fix generics with reference generic arguments () 2022-02-19 15:19:50 +02:00