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

63 Commits

Author SHA1 Message Date
b71c131678 cgen: fix map with comp-time reflection, improve comptime var handling (#17603) 2023-03-14 13:49:29 +02:00
ae6a48c0e3 all: rename it to index in array inits (#17543) 2023-03-08 20:51:45 +01:00
2879c5110c cgen, check, parser: implement first-class option type (#17017) 2023-02-18 11:45:01 +02:00
404a9aa442 v: forbid function parameter names, shadowing imported module names (#17210) 2023-02-08 20:37:04 +02:00
l-m
bb512f782e checker, ast: add field promoted_type for InfixExpr, filled in by the checker, to save duplicate work in the backends (#17158) 2023-01-29 21:06:05 +02:00
1cad788779 checker: add error for type Alias = map[string]Alias (fix #17008) (#17015) 2023-01-18 01:34:43 +02:00
64558df764 vlib: move the mysql/sqlite/pg/mssql modules under vlib/db (#16820) 2023-01-13 17:02:32 +02:00
90941b3b1f all: change optional to option (#16914) 2023-01-09 09:36:45 +03:00
14cc43b0f6 v ast: add forgotten fields since 2022/06/01 2022-12-15 21:18:54 +02:00
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
f16722596c all: replace generic '<>' with '[]' in error messages and comments (#16571) 2022-12-02 09:22:48 +02:00
ef5be22f81 all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
37700502f5 all: implement struct field optional and disallow storing result (#16392) 2022-11-17 07:51:50 +02:00
017ace6ea7 vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
f6844e9766 all: change optional to result of io (#16075) 2022-10-16 09:28:57 +03:00
8b962f8446 checker: fix nested struct reference type field initialized check. (fix: #15741) (#15752) 2022-09-15 07:59:31 +03:00
4718b8b45a all: unify the displaying of compiler errors, using a common util.show_compiler_message/2 function. 2022-08-24 13:38:47 +03:00
77495c8d03 all: support assert condition, extra_message, evaluating and showing extra_message on assert failure (#15322) 2022-08-03 01:14:01 +03:00
5d8d11c989 ci: fix v cmd/tools/vast after ast.StructInit field renaming 2022-07-10 18:28:24 +03:00
10051e005a parser, cgen: temporary prefix ++ for translated code 2022-06-18 13:30:47 +03:00
d679146a80 fmt: remove space in front of ? and ! (#14366) 2022-05-13 06:56:21 +03:00
fbb9e65c0f all: ~500 more byte=>u8 2022-04-15 18:25:45 +03:00
fb192d949b all: replace []byte with []u8 2022-04-15 15:35:35 +03:00
d4a0d6f73c all: byte => u8 2022-04-15 14:58:56 +03:00
f9fc136c24 all: rename InterfaceDecl.ifaces to InterfaceDecl.embeds (#13475) 2022-02-15 11:17:39 +02:00
3bd528b218 ast, checker, cgen: fix error for map sumtype value init (#13290) 2022-01-27 09:44:34 +02:00
291a1ffd8d token: rename Position to Pos, rename position() to pos() (#13279) 2022-01-26 12:36:28 +02:00
ca1f675dba ast, checker, cgen: implement if guard with multi return optional (#13273) 2022-01-25 14:36:33 +02:00
86719c5de9 tools: update vast to latest V 2021-12-22 18:13:29 +02:00
df7f2aa8a3 all: support [markused] tags for fns/consts/globals 2021-12-15 14:34:49 +02:00
f407d6de02 ast, checker, cgen: fix generics multiple type comptime call (fix #12777) (#12806) 2021-12-12 19:42:40 +02:00
0d0d7323bb transformer: provide direct_memory_access to arrays when safe (#12724) 2021-12-11 21:55:46 +02:00
6f5d952d8f tools: implement v ast -t file.v (terse mode) (#12734) 2021-12-06 09:50:44 +02:00
3b7e7c9c46 tools: update vast to latest V (#12733) 2021-12-05 19:45:51 +02:00
0cb4557a8d ast, checker, cgen: fix nested struct embed method call (#12714) 2021-12-04 14:51:42 +02:00
2d43fdb42a ast, checker, cgen: fix nested struct embed error (fix #12659) (#12712) 2021-12-04 11:19:19 +03:00
5a89c0a480 ast: change CompFor to ComptimeFor (#12482) 2021-11-17 08:29:43 +02:00
c28041cecc all: cleanup/rename all comp_ names to be comptime_ (#12467) 2021-11-15 15:47:29 +02:00
b963aff8e8 vast: update to latest V (#12387) 2021-11-04 19:57:51 +02:00
eed94c727c os: move C struct declarations in their own _default.c.v files (#12268) 2021-10-22 17:08:08 +03:00
6c6bb08547 tools/vast: update vast to latest V 2021-10-11 15:52:06 +03:00
85b58b03a3 cgen: parallelize (#10844) 2021-09-28 10:28:04 +03:00
1688148828 flag: switch panics to optionals (#11515) 2021-09-16 19:25:05 +03:00
f87a638ddc tools/vast: update vast to latest V (#11279) 2021-08-23 13:37:49 +03:00
900c37aa65 v.gen.c: support T.typ - an int for the type index of the generic type T (#11175) 2021-08-14 08:48:25 +03:00
a5c784830b all: simplify global_scope processing (#10848) 2021-07-18 15:29:34 +03:00
6edfb2c7fe v.parser: eliminate PrefixExpr from &Type(x).name and &Type(x)[idx] too (fix vinix build) 2021-07-17 20:20:20 +03:00
5089eb4a84 parser: fix pointer cast expressions hack (#10777) 2021-07-13 12:01:24 +03:00
b09fa69cb3 v ast: use flag, add ability to combine -p and -w, implement --hide pos,name_pos,args,global_scope,scope 2021-07-12 14:53:14 +03:00
0a66d8dc10 v ast: allow analyzing .vsh files too 2021-07-12 13:24:40 +03:00