shadowninja55
|
06a6a8e199
|
checker: check for empty branches in match expressions (#10593)
|
2021-06-28 19:32:28 +03:00 |
Wertzui123
|
148bb31f6e
|
v.parser: allow for `if x { $if y {} } else {}`, fix #10243 (#10294)
|
2021-06-01 12:19:39 +03:00 |
Louis Schmieder
|
38796521fa
|
all: allow defer use from other scope (#10284)
|
2021-05-31 14:43:44 +03:00 |
Alexander Medvednikov
|
ca8158ac41
|
parser: handle casts in match expressions; c2v: minor fixes
|
2021-05-28 17:59:43 +03:00 |
Uwe Krüger
|
3c0a368af3
|
all: automatically move (some) referenced objects to heap (#9873)
|
2021-04-25 21:40:38 +03:00 |
Alexander Medvednikov
|
7385f8e56b
|
all: a massive merge of ast and table modules
|
2021-04-02 01:57:09 +03:00 |
Alexander Medvednikov
|
6f318be96c
|
checker: do not allow nil sum types init
|
2021-03-31 11:13:52 +03:00 |
Ned Palacios
|
aa4e22c287
|
scanner, token: add column information to tokens (#9407)
|
2021-03-23 06:23:46 +01:00 |
ka-weihe
|
3753a58ce0
|
parser: fix if-guard redefinition (#9425)
|
2021-03-23 04:38:36 +01:00 |
spaceface
|
7d0cba5e96
|
v.ast: remove the `stmt.position()` method (#9233)
|
2021-03-11 14:50:02 +02:00 |
spaceface
|
b9a381f101
|
all: migrate to the new Option (p. 1) (#8924)
|
2021-02-28 22:24:29 +03:00 |
Delyan Angelov
|
1c0eefae38
|
parser/scanner: replace p.peek_tok2/3 with p.peek_token(2/3) (#8946)
|
2021-02-24 21:03:53 +03:00 |
Lukas Neubert
|
cb1f63f765
|
parser: replace eat_line_end_comments() with configurable eat_comments() (#8636)
|
2021-02-08 18:16:02 +02:00 |
Lukas Neubert
|
473cd1d416
|
fmt: single line ternary return (#8605)
|
2021-02-08 00:28:46 +01:00 |
Lukas Neubert
|
7f4c582f1a
|
fmt: unwrap long infix exprs inside parenthesis if necessary (#8609)
|
2021-02-07 23:10:39 +01:00 |
Lukas Neubert
|
2774db077d
|
fmt: keep user choice for newlines in match branches (#8418)
|
2021-01-30 11:57:57 +01:00 |
Lukas Neubert
|
e47c13903b
|
fmt: keep newlines between toplevel stmts (#8383)
|
2021-01-29 12:17:59 +02:00 |
Lukas Neubert
|
8b61891348
|
fmt: smarter if condition wrapping (#8201)
|
2021-01-23 10:33:22 +02:00 |
Tim Basel
|
129eee346b
|
fmt: keep single empty lines (#8189)
|
2021-01-19 14:49:40 +01:00 |
Swastik Baranwal
|
6f1ae65811
|
parser: add a warning for only else branch in match (#8185)
|
2021-01-18 18:31:36 +02:00 |
Lukas Neubert
|
ac2c3847af
|
all: update copyright to 2019-2021 (#8029)
|
2021-01-18 13:20:06 +01:00 |
Lukas Neubert
|
16c9cbce7c
|
fmt: correctly increase f.line_len for write_indent (#8174)
|
2021-01-18 06:02:29 +01:00 |
Daniel Däschle
|
53941c4a0a
|
fmt: fix if cond break readability (#8132)
|
2021-01-16 02:12:17 +01:00 |
Daniel Däschle
|
085085a2b9
|
parser: fix sumtype match with array type (#7939)
|
2021-01-07 20:12:35 +01:00 |
Lukas Neubert
|
06fdf34214
|
fmt: unwrap long single line ifs (#7608)
|
2020-12-27 14:20:30 +01:00 |
Daniel Däschle
|
b76c91ec05
|
parser: silent mode fixes (#7286)
|
2020-12-12 13:52:22 +01:00 |
joe-conigliaro
|
0aa9f5a007
|
all: optimize scope usage in checker & parser. store scope in ast nodes (#7281)
|
2020-12-12 19:01:12 +11:00 |
Daniel Däschle
|
aedd1d17b8
|
parser: fix `v test-parser examples/cli.v` (#7243)
|
2020-12-10 19:32:15 +02:00 |
Daniel Däschle
|
47d0ed308d
|
parser: prepare for better VLS integration, more accurate parser errors (#7119)
|
2020-12-04 20:34:05 +02:00 |
Lukas Neubert
|
2691163a7e
|
scope: remove redundant name arg from register() (#7077)
|
2020-12-02 14:40:25 +01:00 |
Alexander Medvednikov
|
c5cd53ca79
|
parser: bring back old $if position calculation
|
2020-12-01 18:59:33 +01:00 |
Alexander Medvednikov
|
0ff541375d
|
autofree: fix a bug with $if and add a test
|
2020-12-01 18:58:16 +01:00 |
Daniel Däschle
|
966b95ca4e
|
parser: move mut in if/match to expr (#6973)
|
2020-11-27 03:08:42 +01:00 |
Daniel Däschle
|
7d6f97259f
|
all: refactor UnionSumType to SumType (#6944)
|
2020-11-25 13:09:40 +02:00 |
Daniel Däschle
|
a042966082
|
all: remove old sumtype code (#6937)
|
2020-11-24 17:55:24 +01:00 |
Daniel Däschle
|
aa6303f0b2
|
all: use the new types with old syntax (#6922)
|
2020-11-24 13:58:29 +01:00 |
Daniel Däschle
|
22fdf76db5
|
gen: unwrap optional on if guard expr (#6903)
|
2020-11-21 22:40:05 +01:00 |
Daniel Däschle
|
838ad16296
|
all: refactor ast.Expr to use the new sum type implementation (#6792)
|
2020-11-21 00:05:57 +01:00 |
Daniel Däschle
|
41ba942369
|
parser: smartcast mutable selector (#6881)
|
2020-11-19 21:05:10 +01:00 |
Daniel Däschle
|
9feb010355
|
all: mutable smartcasts (#6878)
|
2020-11-19 17:28:46 +01:00 |
Daniel Däschle
|
e06756ef58
|
all: match multi aggregate for union sum types (#6868)
|
2020-11-18 20:52:00 +01:00 |
Delyan Angelov
|
f42a44abec
|
vfmt: fix `match x { 10 /* ... */ {} }` and `a := [1/* x */, /* y */2, 3]`
|
2020-11-11 22:59:43 +02:00 |
Daniel Däschle
|
6271798ce3
|
cgen: union sum types implementation (#6745)
|
2020-11-11 09:18:15 +01:00 |
Delyan Angelov
|
9eb655e65c
|
all: add .pos fields to all AST nodes, to avoid wrong positions in error messages
|
2020-11-04 13:34:12 +02:00 |
Delyan Angelov
|
c33a748344
|
vfmt: handle more comments in interface/struct init/match branches
|
2020-10-14 22:52:33 +03:00 |
Swastik Baranwal
|
7e13518cc2
|
parser: disallow match expr at certain places (#6490)
|
2020-10-03 16:30:58 +03:00 |
Enzo
|
324d547cdb
|
parser: allow multiple types in match branch (#6505)
|
2020-10-01 01:07:36 +02:00 |
Alexander Medvednikov
|
624f22e27e
|
all: mutability check (part 1); enable mutable sumtype args
|
2020-09-22 05:28:29 +02:00 |
Uwe Krüger
|
4ae88c69ac
|
sync/select: allow push of literals and calculated expressions (#6429)
|
2020-09-20 03:50:09 +02:00 |
Uwe Krüger
|
31a52cdf21
|
cgen: implement channel `select` block code generation (#6424)
|
2020-09-19 02:14:35 +02:00 |