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
Daniel Däschle
5ea17ad2d4
all: if smartcast part 2 (#5754) 2020-07-08 15:46:58 +02:00
Daniel Däschle
b62bf59c21
all: if-is smartcast part 1 (#5730) 2020-07-08 15:17:28 +02:00
Delyan Angelov
69d3c3f596 cgen: sort const inits/cleanups topologically, skip calling non fn init(){} fns 2020-07-08 14:28:58 +03:00
Alexander Medvednikov
2425c05c42 Revert "cgen: sort const inits/cleanups topologically too"
This reverts commit 38000f862260fafa310f92c07f052ef0fc5e48fe.
2020-07-08 12:56:56 +02:00
Delyan Angelov
38000f8622 cgen: sort const inits/cleanups topologically too 2020-07-08 11:22:30 +03:00
Louis Schmieder
3bb1d24dad
parser: add template path by fn name for vweb (#5737) 2020-07-08 09:12:57 +03:00
joe-conigliaro
2480cce1ed
checker: optimize if & fix typo 2020-07-08 01:36:48 +10:00
joe-conigliaro
5fd5e558ae
parser/checker/gen: anon fn direct call with args 2020-07-08 01:10:39 +10:00
Louis Schmieder
2a7a6fa1eb
orm: add delete stmt (#5725) 2020-07-07 16:55:32 +02:00
Uwe Krüger
ef02373061
all: remove rwshared keyword, make its semantics default for shared (#5710) 2020-07-07 01:57:31 +02:00
spaceface777
d0e321c8a3
fmt: allow parsing files without fn main() (#5681) 2020-07-05 20:53:01 +02:00
KrisChambers
8d035a446a
Fix v/parser: Failure to parse structs with fields typed as anonymous functions returning having an optional void (?) return type. (#5684)
* Handle optional void return type in function types in struct fields.

* Add more testing for optional return types in struct fields.

* Move language parsing into it's own function

* Fix issue caused by not setting typ.

* Fix test for structs containing anon fn with optional void return types
2020-07-05 19:29:39 +02:00
yuyi
96bd4e8794
parser: fix type detection in match (#5679) 2020-07-05 16:35:45 +02:00
Alexander Medvednikov
188bad4f38 vfmt: handle string attrs 2020-07-04 23:38:28 +02:00
Enzo
7778cbe9f5
all: make os global in scripts (#5669) 2020-07-04 23:37:41 +02:00
Delyan Angelov
5b93b4f37d vfmt: allow multiple comments after if branches 2020-07-04 16:13:58 +03:00
Delyan Angelov
68af46402e vvet: allow passing many files, improve specifity for emacs goto error 2020-07-04 15:29:00 +03:00
Uwe Krüger
3b067f5f85
all: experimental locked concurrency support, part 1 (#5637) 2020-07-04 12:44:25 +02:00
Ruofan XU
37f31da6c9
parser: minor simplification (#5645) 2020-07-03 23:22:43 +02:00
Alexander Medvednikov
3d3549d65a Revert "parser: advanced division by zero check (#5629)"
This reverts commit f03688e443b2519299706e7b3dc2ecfad07c412d.
2020-07-03 22:30:51 +02:00
Alexander Medvednikov
2281163efd vweb: fix a routing bug 2020-07-03 17:50:48 +02:00
Alexander Medvednikov
b7175b54eb vweb: ['/:arg1/:arg2/action'] attribute 2020-07-03 15:10:39 +02:00
yuyi
f03688e443
parser: advanced division by zero check (#5629) 2020-07-03 11:28:00 +02:00
Delyan Angelov
3c432f5e07 orm: require order by instead of just order 2020-07-02 23:37:30 +03:00
Louis Schmieder
b89cbf3224
orm: add support for ordering (#5624) 2020-07-02 20:29:22 +03:00
Delyan Angelov
132170f54c vfmt: handle comments in enum Abc{} and after match branches 2020-07-02 16:51:09 +03:00
Alexander Medvednikov
2716a37916 ci: fix v vet call; fmt: fix SizeOf 2020-07-01 20:07:33 +02:00
Alexander Medvednikov
dbcb23ddc8 ci: run v vet on cgen and ast 2020-07-01 19:07:19 +02:00
Alexander Medvednikov
da99868a28 ci: run v vet vlib/v/parser 2020-07-01 18:57:14 +02:00
yuyi
40a393926d
cgen: fix cross assign of struct fields (#5606) 2020-07-01 18:43:14 +02:00
yuyi
2f614ad79f
parser: optimize cross assign using expr.str() (#5604) 2020-07-01 16:43:13 +02:00
yuyi
6c5b638202
parser: fix array cross assign (fix #5577) (#5591) 2020-07-01 12:11:03 +02:00
Delyan Angelov
78e1127d99
cgen: treat the main module like any other v module 2020-07-01 00:53:53 +02:00
joe-conigliaro
73da3c9e4c
generic structs: better naming & comments 2020-06-30 09:22:15 +10:00
joe-conigliaro
ab37dcaa9c
generic structs: initial implementation 2020-06-29 20:09:09 +02:00
yuyi
9d845262b7
parser: fix module type cast 2020-06-29 17:15:40 +02:00
yuyi
c588bdee5a
cgen: fix fn()? return 2020-06-29 11:02:40 +02:00
Delyan Angelov
1ba5996404 parser: fix interface functions with no params (ui examples) 2020-06-29 10:53:12 +03:00
Delyan Angelov
b6e6cde3e8 parser: disallow fns with type only args and a body 2020-06-29 10:21:01 +03:00
Delyan Angelov
9814497b91 vfmt: fix eating of sql x { ... limit 1 } 2020-06-28 14:27:53 +03:00
Delyan Angelov
fa867578bc vfmt: fix segfault in update where the struct is not yet known 2020-06-28 14:07:28 +03:00
Alexander Medvednikov
3672cfad0b orm: offset test 2020-06-27 16:25:25 +02:00
Alexander Medvednikov
f990a0b3d3 orm: offset 2020-06-27 16:22:41 +02:00
Alexander Medvednikov
f073ffa4ad orm: limit 2020-06-27 16:19:12 +02:00
Alexander Medvednikov
6a335c4416 fmt: run on parser/assign.v 2020-06-27 15:00:28 +02:00
Alexander Medvednikov
2bfe8e5153 vet: a basic version that just checks indentation for now 2020-06-27 14:50:07 +02:00
Alexander Medvednikov
450c6e843c orm: update with multiple fields 2020-06-25 17:18:44 +02:00
Alexander Medvednikov
b280e08ee0 orm: update cgen 2020-06-25 17:12:32 +02:00
Alexander Medvednikov
786be1d1c3 orm: move type logic to checker, so that sql queries can be used before type def 2020-06-25 12:05:24 +02:00
Alexander Medvednikov
83b300435a vweb: escape html; table: rename parent_typ to parent_type 2020-06-24 22:12:33 +02:00