Daniel Däschle
|
85cb0a8c85
|
all: basic implementation of result type (#14140)
|
2022-04-30 16:26:27 +02:00 |
yuyi
|
168531d4e0
|
examples: fix optional in string interpolation and format error (#14079)
|
2022-04-19 12:42:44 +02:00 |
Delyan Angelov
|
e8c8f0e7c0
|
v.ast: fix `dump(os.real_path(Makefile))` printing `main.os.real_path`
|
2022-03-10 11:24:46 +02:00 |
playX
|
b842e89acc
|
all: initial implementation of compile-time types (#13549)
|
2022-02-21 17:42:54 +02:00 |
yuyi
|
ca1f675dba
|
ast, checker, cgen: implement if guard with multi return optional (#13273)
|
2022-01-25 14:36:33 +02:00 |
Delyan Angelov
|
d3489d4246
|
builtin: s.trim_prefix/1 -> s.trim_string_left/1, s.trim_suffix/1 -> s.trim_string_right/1
|
2022-01-05 12:49:22 +02:00 |
Alexander Medvednikov
|
59ed4be49a
|
all: update copyright year
|
2022-01-04 12:21:12 +03:00 |
Delyan Angelov
|
43fee6b3d5
|
all: fix registration of methods with the same name on different generic structs
|
2021-12-28 21:42:48 +02: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
|
5a89c0a480
|
ast: change CompFor to ComptimeFor (#12482)
|
2021-11-17 08:29:43 +02:00 |
yuyi
|
963233687e
|
v.fmt: fix fmt of 'fn(mut a &int)' (#12075)
|
2021-10-06 20:51:38 +03:00 |
zakuro
|
fb20a92b1e
|
fmt: fix a bug that break generics call in string inter (#11468)
|
2021-09-11 04:47:22 +03:00 |
Delyan Angelov
|
34d39ccb64
|
builtin: fix leak in rune.str(), fix leaks in most assert x == y statements in tests (#11091)
|
2021-08-13 18:37:34 +03:00 |
Enzo
|
da53f818df
|
all: initial support for closures (x64 / linux-only) (#11114)
|
2021-08-10 21:27:15 +03:00 |
Delyan Angelov
|
45a15755b8
|
v.builder: implement -show-callgraph
|
2021-07-24 13:32:56 +03:00 |
Delyan Angelov
|
48546d0f45
|
all: do compile time const evaluation for `const x = "abc" + "xyz"` and `const x = 16 * 1024 + 5` (fix const prealloc_block_size)
|
2021-07-18 22:59:18 +03:00 |
Delyan Angelov
|
79df7f51c3
|
v: deprecate `[if ident]` in favour of `[if ident ?]`
|
2021-06-22 10:30:14 +03:00 |
Delyan Angelov
|
39e7290416
|
v: support for `[if expr]`, part 2 (old `[if ident]` is not yet deprecated)
|
2021-06-17 18:55:20 +03:00 |
Delyan Angelov
|
e70bde54dc
|
ast: improve Expr.str() for `sizeof(Type)` and `__offsetof(StructName, fieldname)`, for more informative asserts/dumps
|
2021-06-12 16:49:14 +03:00 |
Lukas Neubert
|
d5cacd1e5f
|
ast: use string builder for StringInterLiteral.str() (#10207)
|
2021-05-27 10:17:51 +03:00 |
Ryan Roden-Corrent
|
306c16f0fa
|
fmt: don't break indexing in string interpolation. (#10195)
|
2021-05-25 07:45:32 +03:00 |
penguindark
|
d8d05e0106
|
all: new string interpolation in pure V (#10181)
|
2021-05-24 05:20:45 +03:00 |
yuyi
|
212b4fa089
|
parser: implement infering generic type parameters from receiver types (fix #5862) (#9870)
|
2021-04-26 10:56:08 +03:00 |
Louis Schmieder
|
fc3b628440
|
v: support `$for attr in Test.attributes` (#9836)
|
2021-04-25 18:29:26 +03:00 |
Delyan Angelov
|
b8e9f085eb
|
vfmt: cleanup StringInterLiteral.get_fspec_braces/1
|
2021-04-15 09:46:05 +03:00 |
Delyan Angelov
|
f1549b3ee7
|
vfmt: make ${} more robust; require it for every interpolation that uses '...' or "..."
|
2021-04-15 09:28:40 +03:00 |
Delyan Angelov
|
84fe2d8c6e
|
v.ast: implement Expr.str() for ast.ConcatExpr and ast.IfExpr too
|
2021-04-13 12:23:30 +03:00 |
yuyi
|
a2a18ef92c
|
v: simplify handling of function generic parameters (#9673)
|
2021-04-11 09:02:57 +03:00 |
Daniel Däschle
|
6a5f49afb1
|
all: support `?Type(none)` (#9567)
|
2021-04-02 16:34:48 +02:00 |
Delyan Angelov
|
69ba93f954
|
ast: remove redundant `import v.ast`
|
2021-04-02 08:31:29 +03:00 |
Alexander Medvednikov
|
7385f8e56b
|
all: a massive merge of ast and table modules
|
2021-04-02 01:57:09 +03:00 |
Delyan Angelov
|
c5884a5f4d
|
v.ast: improve Expr.str() for `sizeof(Type)`
|
2021-03-19 20:56:49 +02:00 |
Delyan Angelov
|
25c07c2f43
|
v.ast: handle more expressions in Expr.str()
|
2021-03-15 06:27:56 +02:00 |
yuyi
|
945769a4f6
|
all: implement reference receiver optimization for big structs (#9268)
|
2021-03-14 18:11:21 +01:00 |
Delyan Angelov
|
69f1e7c9c3
|
v: fixes for `v -autofree -o v2 cmd/v`
|
2021-03-14 09:37:38 +02:00 |
Lukas Neubert
|
043c29cf95
|
fmt: fix string interpolation with CastExpr (#9137)
|
2021-03-06 20:47:19 +02:00 |
Lukas Neubert
|
7f6c4caa01
|
fmt: fix missing space after single line array pre comments (#8904)
|
2021-02-22 17:53:55 +02:00 |
zakuro
|
f54c1a5cc2
|
all: add strings.Builder.write_string and use write_string instead of write (#8892)
|
2021-02-22 13:18:11 +02:00 |
glebbash
|
aa548f45ea
|
docs: fix functions in array/map example (#8695)
|
2021-02-12 21:10:54 +02:00 |
Uwe Krüger
|
cf230644b6
|
fmt: enable shared return types (#8614)
|
2021-02-06 21:25:06 +01:00 |
Lukas Neubert
|
43676330ba
|
fmt: keep braces around @ escaped fields in string interpolation (#8488)
|
2021-02-01 11:04:57 +02:00 |
div72
|
8c70920695
|
all: add offsetof (#8380)
|
2021-01-30 12:57:09 +01:00 |
Lukas Neubert
|
a044441224
|
fmt: keep {} in string interpolation for chained CallExprs (#8422)
|
2021-01-30 11:58:19 +01:00 |
Daniel Däschle
|
006a11454f
|
cgen: fix generic type $else $if (#8339)
|
2021-01-25 17:08:02 +01:00 |
Lukas Neubert
|
8b61891348
|
fmt: smarter if condition wrapping (#8201)
|
2021-01-23 10:33:22 +02:00 |
Daniel Däschle
|
500ebf77e4
|
all: implement multiple generics (#8231)
|
2021-01-22 13:49:56 +01:00 |
joe-conigliaro
|
97ebecc5f4
|
usecache: get all tests running with -usecache enabled by default (p.1) (#7699)
|
2021-01-20 06:04:59 +01:00 |
Lukas Neubert
|
ac2c3847af
|
all: update copyright to 2019-2021 (#8029)
|
2021-01-18 13:20:06 +01:00 |
zakuro
|
c39f0a7cb7
|
ast: add str for AssertStmt (#8021)
|
2021-01-15 00:17:26 +01:00 |
zakuro
|
c8bcee9639
|
ast: add str for comment (#8019)
|
2021-01-14 02:21:27 +01:00 |