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

687 Commits

Author SHA1 Message Date
Delyan Angelov
f2cda1a529
parser: update p.inside_or_expr consistently (fix v fmt -w vls/analyzer/symbol_registration.v) 2021-10-19 13:36:10 +03:00
yuyi
c9b2f878b3
parser, checker: optimize checking generic struct type mismatch (#12179) 2021-10-15 00:11:31 +03:00
yuyi
7bc3e67e24
fmt: fix import with symbols (fix #12065) (#12069) 2021-10-05 11:44:48 +03:00
zakuro
ce0867f40c
vfmt: fix removal of selective imported type used in map (#12030) 2021-10-01 15:14:21 +03:00
crthpl
85b58b03a3
cgen: parallelize (#10844) 2021-09-28 10:28:04 +03:00
Ruofan XU
834cf40ab2
cgen, fmt, scanner: fix and use nested lambda in scanner (#11967) 2021-09-24 18:21:22 +03:00
Delyan Angelov
bf2569a9a8
all: support mut volatile x := 123 declarations (#11940) 2021-09-22 13:06:30 +03:00
yuyi
108a01d65f
fmt: fix unnecessary line break in array init (fix #11448) (#11562) 2021-09-21 16:20:09 +03:00
Delyan Angelov
7bd145d88a
os,net: cleanup deprecated @VROOT usages 2021-09-19 16:24:24 +03:00
Ruofan XU
b343f19bec
v.scanner: fix ambiguity of two-level generics and shift-right (#11540) 2021-09-19 16:22:28 +03:00
yuyi
44ec8a8cd4
v.fmt, v.gen.js: use 'if foo in [TypeA, TypeB]' in fmt.v and js.v (#11524) 2021-09-17 21:59:16 +03:00
Ruofan XU
9180647f99
scanner, fmt: fix multi-level generics (#11517) 2021-09-17 21:44:31 +03:00
Daniel Däschle
b63ec8fbcf
checker: require params attribute to use struct as keyword arguments in function (#11135) 2021-09-14 00:05:30 +03:00
Enzo
012da10517
ast, fmt: cleanup (#11477) 2021-09-13 04:08:58 +03:00
zakuro
fb20a92b1e
fmt: fix a bug that break generics call in string inter (#11468) 2021-09-11 04:47:22 +03:00
Enzo
c8471528ce
fmt: format long sum-types with a line for each type (#11461) 2021-09-10 20:56:55 +03:00
yuyi
e5360e164a
fmt: remove unnecessary parentheses after return (fix #11423) (#11435) 2021-09-08 14:19:53 +03:00
zakuro
aefe267970
fmt: fix removal of selective imported generic type (#11395) 2021-09-05 17:59:35 +03:00
zakuro
19a43db2de fmt: fix removal of comment before embed in struct (#11384) 2021-09-04 11:02:04 +03:00
yuyi
f44eb88a8d
vfmt: fmt '!(a in/is b)' to 'a !in/is b' (#11335) 2021-08-30 09:45:36 +03:00
Alexander Medvednikov
cf4081e2dd all: more chdir/chmod fixes 2021-08-28 12:52:48 +03:00
Delyan Angelov
16455a7660 fmt: preserve local fn parameter, when a module const with the same name is declared 2021-08-27 09:22:53 +03:00
yuyi
b635ff80de
fmt: format '1.' to '1.0' (#11312) 2021-08-26 07:18:27 +03:00
yuyi
4d078edb72
scanner: no longer allow 1. float literals (#11301) 2021-08-25 14:39:37 +03:00
yuyi
3d22dc1608
all: fix formating Foo<A,B> to Foo<A, B> (#11225) 2021-08-18 17:17:21 +03:00
spaceface
7c9a1defa4
fmt: preserve method receiver mutability in interface decls (#11222) 2021-08-17 19:39:53 +03:00
Lukas Neubert
1c847e04c8
fmt: fix malformed import for incorrect module lookup paths (#11192) 2021-08-16 05:15:32 +03:00
Enzo
da53f818df
all: initial support for closures (x64 / linux-only) (#11114) 2021-08-10 21:27:15 +03:00
yuyi
aceaaa681d
ast: fix formatting fn variadic of reference param (#11130) 2021-08-10 21:14:37 +03:00
zakuro
490dec222f
fmt: keep char literal, ' (#11060) 2021-08-06 06:21:28 +03:00
Daniel Däschle
800c0e5092
vlib: remove deprecated map{} usages as well as deprecated functions (#11035) 2021-08-04 12:44:41 +03:00
Uwe Krüger
6068777e03
parser/checker: deduce type of global from initialization expression (#11005) 2021-07-31 16:35:19 +03:00
Lukas Neubert
1e255d3ab1
fmt: cleanup redundant generic types code (#10990) 2021-07-29 15:21:10 +03:00
Uwe Krüger
08aa6c08f6
all: more improvements for global variables (#10986) 2021-07-29 10:57:31 +03:00
Uwe Krüger
1e5627e777
parser: don't require unary > prefix for select timeout (#10928) 2021-07-23 23:24:27 +03:00
Lukas Neubert
5e4cbcc1e3
fmt: unify struct field align code (#10887) 2021-07-23 12:12:09 +03:00
Lukas Neubert
3cc54d8e81
vfmt: split up asm code into more granular methods, add test (#10878) 2021-07-23 08:58:06 +03:00
Lukas Neubert
38100faecf
fmt, parser: fix pos.last_line for assembly blocks (#10877) 2021-07-21 11:48:12 +03:00
Lukas Neubert
05d0288e8d
fmt: move asm related code into it's own file (#10874) 2021-07-20 15:07:15 +03:00
Daniel Däschle
ad3835b598
parser: deprecate short struct init (#10842) 2021-07-20 11:17:08 +03:00
yuyi
a5c784830b
all: simplify global_scope processing (#10848) 2021-07-18 15:29:34 +03:00
Delyan Angelov
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
spaceface
6e942bf4c2
v: initial support for generic interfaces and sumtypes (#10795) 2021-07-15 08:29:13 +03:00
Delyan Angelov
bd0653abab
parser: cleanup &Type(x) more, add fmt regression test 2021-07-13 13:12:37 +03:00
Delyan Angelov
974737f26b
vfmt: keep module mymodule ... x := []thread MyStruct{} as it is 2021-07-12 10:46:36 +03:00
zakuro
cb14e42af8
fmt: fix removal of selective imported Enum (#10729) 2021-07-10 11:06:01 +03:00
Louis Schmieder
eb96ad11d9
checker: add pkgconfig to comptime if (#10692) 2021-07-09 18:17:04 +03:00
crthpl
d14de5fdaf
all: fix generic functions with pointer args (#10686) 2021-07-07 11:51:05 +03:00
Daniel Däschle
3881e97a40
vlib: remove ustring usage (#10618) 2021-06-30 22:30:28 +03:00
Lukas Neubert
1492eae27d
v.fmt: keep selective type imports used for casting (#10597) 2021-06-28 13:21:26 +03:00