Vincenzo Palazzo
|
51c1d666c2
|
checker: fix operator overloads (for large structs with > 8 fields, the method receiver is normally auto converted to a reference) (#13889)
|
2022-04-03 19:30:29 +03:00 |
yuyi
|
bc98c11d9d
|
parser, checker, cgen: minor cleanup of go_expr() (#13875)
|
2022-03-31 19:58:04 +03:00 |
Delyan Angelov
|
bea0d500d0
|
parser: ignore upper letter case restriction for `fn C.xyz` declarations
|
2022-03-26 21:20:28 +02:00 |
Nick Treleaven
|
fcb57312b9
|
parser: error if parameter name starts with a capital (#13827)
|
2022-03-26 19:56:34 +02:00 |
yuyi
|
c1c3ae2a18
|
parser: minor cleanup in fn_args() (#13711)
|
2022-03-11 10:42:03 +02:00 |
yuyi
|
3f351036a2
|
parser: fix error for fn with type only argument (fix #13704) (#13709)
|
2022-03-10 22:52:06 +02:00 |
ChAoS_UnItY
|
63b41e67fa
|
v.parser: change body_start_pos to function declaration's lcbr, resolve #13642 (#13646)
|
2022-03-03 19:51:27 +02:00 |
yuyi
|
bc16c61f6f
|
parser: check using 'mut' on fn_decl return type (#13610)
|
2022-02-27 14:23:43 +02:00 |
Larpon
|
d80f5165dd
|
fmt: keep trailing comments after fn header decl (#13596)
|
2022-02-25 16:36:48 +03:00 |
yuyi
|
b5e7cef1b1
|
ast: define 'const invalid_type_idx = -1' (#13573)
|
2022-02-23 11:54:43 +03:00 |
Alexander Medvednikov
|
5a14748e7c
|
cgen: c2v enum fix
|
2022-02-16 12:05:32 +03:00 |
Delyan Angelov
|
799c95dc4e
|
tests: filter test_ fns with params from the list of automatically run test functions (fix #13443)
|
2022-02-12 17:30:20 +02:00 |
yuyi
|
7178367de0
|
all: fix error for comptime for in field with generic fn (fix #13409) (#13439)
|
2022-02-11 22:00:13 +02:00 |
Delyan Angelov
|
9ed18efa53
|
checker: error on redefining any of the public builtin functions, not just ['print', 'println', 'eprint', 'eprintln', 'isnil', 'panic', 'exit'] (#13419)
|
2022-02-10 12:26:30 +02:00 |
yuyi
|
f2eb50008d
|
parser, checker: cleanup struct short syntax processing (#13416)
|
2022-02-09 18:31:16 +02:00 |
div72
|
939bc9f26f
|
v.parser: fix compilation of normal .v files with -translated (#13363)
|
2022-02-06 12:53:20 +02:00 |
div72
|
cec7e91714
|
v.parser, v.checker, v.gen: add support for [translated] tag (#13373)
|
2022-02-06 00:16:02 +02:00 |
yuyi
|
291a1ffd8d
|
token: rename Position to Pos, rename position() to pos() (#13279)
|
2022-01-26 12:36:28 +02:00 |
yuyi
|
155f897270
|
ast, parser, checker: fix generic struct field with default struct value (#13158)
|
2022-01-13 22:25:25 +02:00 |
yuyi
|
86ba4517b1
|
parser: check error of anon fn argument type (#13103)
|
2022-01-09 16:15:34 +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 |
Daniel Däschle
|
35282396ec
|
all: inline sum types (#12912)
|
2021-12-25 18:26:40 +03:00 |
Delyan Angelov
|
db1175e455
|
parser: handle `[noreturn]` on methods too
|
2021-12-22 19:58:37 +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 |
ChAoS_UnItY
|
50d988ebc7
|
v.parser: forbid unsupported language functions/types in specific backends (#12655)
|
2021-12-18 10:00:31 +02:00 |
Delyan Angelov
|
6ff953d936
|
preludes,builder,cgen: add support for VTEST_RUNNER=tap and -test-runner tap (#12523)
|
2021-12-16 15:59:46 +02:00 |
Delyan Angelov
|
df7f2aa8a3
|
all: support `[markused]` tags for fns/consts/globals
|
2021-12-15 14:34:49 +02:00 |
yuyi
|
7fc9e614a3
|
ast, parser, checker: fix generic fn in builtin module (#12769)
|
2021-12-09 21:37:43 +02:00 |
playX
|
2eb02ff5a7
|
jsdom, js: start refactoring jsdom; improve JS interfaces; add two attributes for them (#12488)
|
2021-11-17 11:41:33 +02:00 |
playX
|
6c32c544e1
|
js,parser: allow declaring methods on JS interfaces for easier FFI (#12447)
|
2021-11-13 11:08:17 +02:00 |
yuyi
|
8f4180ea09
|
parser: check generic parameters error of generic struct declaration (#12418)
|
2021-11-09 09:25:57 +02:00 |
Delyan Angelov
|
c4e282a0c8
|
parser: check fn args in declarations too with `-Wimpure-v`
`v -Wimpure-v examples/2048/` now passes cleanly.
|
2021-11-03 16:20:24 +02:00 |
yuyi
|
943a807d30
|
parser: implement generics method with auto multi generic types (#12312)
|
2021-10-27 15:41:13 +03:00 |
playX
|
a3de67de28
|
js: support WASM interoperability using `wasm_import`/`wasm_export` fn tags (#12212)
|
2021-10-18 10:56:21 +03:00 |
Delyan Angelov
|
4c2cb1b6df
|
vdoc: prevent leaking to the docs the `pure_v_but_overriden_by_` prefix
|
2021-10-14 11:47:50 +03:00 |
yuyi
|
f1742a6f62
|
v.ast: change 'type.to_ptr()' to 'type.ref()' (#12086)
|
2021-10-06 20:49:39 +03:00 |
yuyi
|
108a01d65f
|
fmt: fix unnecessary line break in array init (fix #11448) (#11562)
|
2021-09-21 16:20:09 +03:00 |
Enzo
|
ccf6285f82
|
checker: allow mut arg on C functions (#11430)
|
2021-09-11 14:25:38 +03:00 |
Delyan Angelov
|
ec196cfcd1
|
all: support overriding individual function from .v files in .c.v or .js.v files.
|
2021-08-22 15:51:26 +03:00 |
Daniel Däschle
|
6dbc6f233b
|
v.parser: add checks for interoperability (C. or JS.) function declarations (#11140)
|
2021-08-12 10:47:24 +03:00 |
Enzo
|
da53f818df
|
all: initial support for closures (x64 / linux-only) (#11114)
|
2021-08-10 21:27:15 +03:00 |
Daniel Däschle
|
815c4b7420
|
all: rename generic_struct_inst to generic_inst (#11044)
|
2021-08-04 03:37:27 +03:00 |
Daniel Däschle
|
ad3835b598
|
parser: deprecate short struct init (#10842)
|
2021-07-20 11:17:08 +03:00 |
playX
|
425ca5e3c3
|
v.gen.js: add three backend options for JS, and comptime if support (#10859)
|
2021-07-19 15:55:03 +03:00 |
yuyi
|
aca66d503d
|
parser: minor optimization in call_expr() (#10809)
|
2021-07-15 17:47:59 +03:00 |
shadowninja55
|
d1f1c5ae51
|
v doc: add attribute tags to `v doc -f html` (#10778)
|
2021-07-13 08:27:20 +03:00 |
Alexander Medvednikov
|
0f72bc9819
|
parser: temporary [c2v_variadic] fn attr for c2v'ed code
|
2021-07-05 11:32:15 +03:00 |
Delyan Angelov
|
6aecda3be8
|
all: support `[noreturn] fn abc() { for{} }`, mark panic/1 and exit/1with it too. (#10654)
|
2021-07-04 20:24:19 +03:00 |
shadowninja55
|
2e5ed08558
|
v.parser: allow anonymous function to return a function (#10592)
|
2021-06-28 11:51:24 +03:00 |