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

799 Commits

Author SHA1 Message Date
Alexander Medvednikov
fca344d1fb all: fn args => params 2020-09-27 03:32:56 +02:00
Alexander Medvednikov
e2c7126d11 checker: verify mutability of method args 2020-09-27 03:14:24 +02:00
Daniel Däschle
abc98c273c
parser: require assign on type alias (#6477) 2020-09-25 12:02:32 +02:00
Nick Treleaven
3925c3fa20
parser: disallow index variable with range for (#6464) 2020-09-24 15:52:44 +03:00
Alexander Medvednikov
624f22e27e all: mutability check (part 1); enable mutable sumtype args 2020-09-22 05:28:29 +02:00
Swastik Baranwal
077b597bd8
scanner/parser: change error msgs for \0 and \x00 and add error for rbyte and cbyte (#6436) 2020-09-21 17:34:24 +03:00
Uwe Krüger
0f1c484ad1
parser/checker: if select { ... } { (#6434) 2020-09-21 07:34:04 +02:00
Uwe Krüger
4ae88c69ac
sync/select: allow push of literals and calculated expressions (#6429) 2020-09-20 03:50:09 +02:00
Nick Treleaven
9958881cbe
parser: support parsing unsafe (as first token) as UnsafeExpr (#6032) 2020-09-19 19:18:36 +03:00
Henrixounez
4121ba9ea9
parser: fix error about multiple modules showing when eof (#6423) 2020-09-19 02:15:47 +02:00
Uwe Krüger
31a52cdf21
cgen: implement channel select block code generation (#6424) 2020-09-19 02:14:35 +02:00
Daniel Däschle
f59b771c76
parser: fix nested amp (#6402) 2020-09-18 01:04:56 +02:00
spaceface777
ff92c3409d
ast: merge IfExpr and CompIf (#6011) 2020-09-18 00:58:54 +02:00
Uwe Krüger
1bc9063573
parser: implement parsing of select block (#6379) 2020-09-16 15:34:57 +02:00
Alexander Medvednikov
b74c1805d7 cgen/autofree: fix and simplify optionals 2020-09-12 16:40:52 +02:00
Daniel Däschle
ce62f997f3
all: better type error positions (#6345) 2020-09-11 14:37:14 +02:00
Alexander Medvednikov
bc8aab4775 checker: fix := test 2020-09-09 17:59:51 +02:00
Alexander Medvednikov
5d484bf022 checker: better error message for incorrect mut x := 2020-09-09 17:27:16 +02:00
Nick Treleaven
eb95a4333a
table: rename Arg to Param (#6337) 2020-09-09 13:21:11 +02:00
Uwe Krüger
2cb711ee15
checker/channels: check mut/& state of transmitted objects (#6315) 2020-09-06 21:24:41 +02:00
Alexander Medvednikov
3410705974 autofree: lots of fixes 2020-09-05 12:00:35 +02:00
Uwe Krüger
cbcba2e4cf
parser: enable module auto import (of sync) (#6271) 2020-08-31 10:44:39 +02:00
Uwe Krüger
c351f8fa47
checker, builtin: prepage for builtin channels (#6262) 2020-08-30 08:55:31 +02:00
Nick Treleaven
7dbae14e19
checker: error on mut name = (#6247) 2020-08-28 20:07:32 +03:00
spaceface777
d663f57d43
parser: move flag logic to checker (#6239) 2020-08-28 09:24:04 +03:00
spaceface777
eff319f869
comp_for: allow checking full mehod and arg types (#5997) 2020-08-27 15:00:44 +02:00
Delyan Angelov
7476428def vfmt: handle comments after last const field 2020-08-27 15:07:49 +03:00
Delyan Angelov
86dfd3902f tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
Nick Treleaven
818db91a9e
parser: warn if PostfixExpr followed by ] or ) token (#6214) 2020-08-25 08:50:06 +02:00
Maciej Obarski
e8e0d9fa42
all: [direct_array_access] tag (#6203) 2020-08-24 09:04:50 +02:00
Swastik Baranwal
b2e79dbebd
parser: add an error for import mod.sub as mod and import mod as mod (#6194) 2020-08-23 02:12:25 +02:00
Uwe Krüger
61df70fdf5
all: enable x = <-ch or {...} (#6195) 2020-08-23 02:12:05 +02:00
Daniel Däschle
fcc61a981d
all: TypeSymbol.source_name (#6187) 2020-08-22 12:29:15 +02:00
Nick Treleaven
1b914d217e
fmt: don't remove mut from if mut smart cast (#6188) 2020-08-22 00:00:02 +02:00
spaceface777
c1651bd271
gg: fixes and Android support (#6161) 2020-08-19 07:10:42 +02:00
Nick Treleaven
e69f091bbd
parser: require ( on same line as name token for fn call or cast (#6160) 2020-08-19 02:37:17 +02:00
Daniel Däschle
b5c1ea44dc
all: fix mutability after if-smartcast (#6129) 2020-08-17 21:11:11 +02:00
Uwe Krüger
9a5f040f72
all: handle <- arrow token for channel operations (#6152) 2020-08-17 20:12:00 +02:00
joe-conigliaro
c01fd4ac58
parser: remove extra scopes from if & match & fix scope end_pos 2020-08-18 01:51:25 +10:00
Alexander Medvednikov
f965ddae49 parser: handle several errors in types; cgen: objC includes 2020-08-16 19:16:59 +02:00
Nick Treleaven
bab5c21224
parser: warn when fixed-size ArrayInit doesn't have trailing {}. (#6137) 2020-08-16 04:54:05 +02:00
Nick Treleaven
0f0a91fc9e
parser: support custom fixed size ArrayInit: [3]int{init: -1} (#6114) 2020-08-15 11:01:54 +02:00
Uwe Krüger
9602a25a0b
all: add builtin channel type chan elem_type (#6126) 2020-08-14 21:18:42 +02:00
Alexander Medvednikov
4bc0dde413 all: new .sort(a < b) syntax 2020-08-12 05:54:51 +02:00
Alexander Medvednikov
99798b83b4 parser: fix match/else check 2020-08-11 17:30:37 +02:00
Alexander Medvednikov
c5aa2bfa51 tests: fix a match test 2020-08-11 16:26:52 +02:00
Alexander Medvednikov
88988817d0 parser: minor match simplification 2020-08-10 19:54:38 +02:00
Delyan Angelov
36eae1c175
builtin: x.vstring() instead of string(x) (#6102) 2020-08-10 18:05:26 +02:00
Delyan Angelov
bd32f0969f parser: enable CamelCase named method names for JS. objects 2020-08-10 10:39:14 +03:00
Nick Treleaven
fce106cf83
parser: use Attr.arg field for [name: arg] (#6084) 2020-08-10 02:00:14 +02:00