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

1060 Commits

Author SHA1 Message Date
Delyan Angelov
e256f1b2aa
checker,cgen: stabilise generic method handling (fix a source code ordering issue) 2021-12-22 18:03:46 +02:00
penguindark
278c08704c
all: support slices with negative indexes #[start..end] (gated arrays) (#12914) 2021-12-22 16:34:02 +03: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
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
2b981b011e
ast: fix bug in parsing -Isomething -Danother from #flag and #pkgconfig directives 2021-12-15 17:55:52 +02:00
Delyan Angelov
df7f2aa8a3
all: support [markused] tags for fns/consts/globals 2021-12-15 14:34:49 +02:00
Delyan Angelov
3afbb9e90a
all: split all backends into cmd/tools/builders (#12811) 2021-12-12 22:10:43 +03:00
yuyi
f407d6de02
ast, checker, cgen: fix generics multiple type comptime call (fix #12777) (#12806) 2021-12-12 19:42:40 +02:00
Delyan Angelov
79de408ef0
parser,checker: support [generated] module xyz (turns off notices). Use it for infix.v. 2021-12-12 00:58:38 +02:00
Thomas Mangin
0d0d7323bb
transformer: provide direct_memory_access to arrays when safe (#12724) 2021-12-11 21:55:46 +02:00
yuyi
9b4329d2f6
ast, checker, cgen: fix interface method with struct embed (#12783) 2021-12-10 14:56:13 +02:00
yuyi
7fc9e614a3
ast, parser, checker: fix generic fn in builtin module (#12769) 2021-12-09 21:37:43 +02:00
zakuro
7379488cee
fmt: fix bug that adds unnecessary module name to generic types (#12758) 2021-12-08 22:33:58 +02:00
crthpl
2fbf7fea75
all: initial interpreter code (#12605) 2021-12-08 11:09:10 +03:00
playX
1cb06a2de4
js: ast.GoExpr support using promises on JS backend (#12749) 2021-12-07 12:11:54 +03:00
Tim Basel
c23ebec944
parser: support bool values in attributes (#12750) 2021-12-07 12:11:29 +03:00
yuyi
36fbd3c4fa
checker: check sumtype as mismatched type (#12743) 2021-12-07 01:31:47 +03:00
playX
105d7fcf75
js: support JS.await (#12726) 2021-12-05 13:33:53 +02:00
yuyi
2754368873
ast: correct comments of the find_field_from_embeds (#12723) 2021-12-05 06:21:39 +02:00
Leo Developer
ace63594bf
all: support $embed_file('embed.vv', .zlib) (#12654) 2021-12-04 19:43:19 +02:00
yuyi
0f50ac3260
ast: cleanup struct embeds related methods (#12719) 2021-12-04 18:46:41 +02:00
yuyi
0cb4557a8d
ast, checker, cgen: fix nested struct embed method call (#12714) 2021-12-04 14:51:42 +02:00
yuyi
2d43fdb42a
ast, checker, cgen: fix nested struct embed error (fix #12659) (#12712) 2021-12-04 11:19:19 +03:00
Alexander Medvednikov
eca78a2906 checker: allow infix expressions in enum declarations 2021-12-03 07:45:37 +03:00
Delyan Angelov
47aa2b1f93
all: fix casting of string(MyString('abc')) and byte(MyByte(123)); improve TypeSymbol handling (#12617) 2021-12-01 09:50:53 +02:00
yuyi
9825c7e06c
ast: fix generic sumtype of alias generic struct (#12611) 2021-11-29 15:12:00 +02:00
Delyan Angelov
6d97b0a407
checker: improve checking of a << b, when a and b are numbers (#12589) 2021-11-29 03:48:49 +03:00
yuyi
43a1d2cfea
ast: cleanup table.v (#12561) 2021-11-24 09:56:56 +02:00
yuyi
e42db5bee2
ast: fix vtl compile error of generic array type cname (#12555) 2021-11-23 20:11:51 +02:00
playX
243e66a106
js,jsdom: Canvas & context API; Added TypeSymbol.is_js_compatible & temporary hacks for JS ifaces (#12526) 2021-11-20 21:28:11 +02:00
Delyan Angelov
3caeadfa0d
cgen,vfmt: support [weak] tags for functions and globals 2021-11-18 18:32:39 +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
yuyi
5a89c0a480
ast: change CompFor to ComptimeFor (#12482) 2021-11-17 08:29:43 +02:00
Delyan Angelov
3fab0a5d05
cgen: fix codegen for for k,v in map_of_pointers { 2021-11-16 17:03:58 +02:00
Delyan Angelov
bc98da9111
ast: speed up the frequently called methods .find_field, .find_method etc 2021-11-07 18:07:04 +02:00
yuyi
9ec1262734
ast: fix generic nested struct init (#12405) 2021-11-07 17:06:37 +02:00
Delyan Angelov
1c12186701
v.token,ast,scanner,parser: use a KeywordsMatcher lookup for builtin_type_names searches too 2021-11-07 16:39:40 +02:00
Delyan Angelov
80242c8041
builtin,ast: apply small performance improvements, suggested by hotspot 2021-11-07 13:30:44 +02:00
Delyan Angelov
a27833ed0d
all: support volatile field Type in struct declarations 2021-11-04 09:45:50 +02:00
Lucas Jenß
51f5841b6e
checker: do not deref non-pointer types in fn_signature_using_aliases (#12340) 2021-11-01 02:26:15 +03:00
yuyi
0e95e4d7b4
ast, cgen: fix generic method str() overload (#12330) 2021-10-28 19:03:17 +03:00
yuyi
f62b2dcfa7
table: fix generic method with multi generic types (#12297) 2021-10-26 11:00:27 +03:00
yuyi
ac99007cab
table: fix generic sumtype instantiations (#12288) 2021-10-25 15:22:41 +03:00
yuyi
ff02c19827
table, builder, checker: cleanup unwrap_generic (#12241) 2021-10-21 05:48:02 +03:00
playX
c1aa782a6c
js,checker: fix some modules build for v -b js self, fix or block check in ast.CallExpr (#12231) 2021-10-19 12:11:54 +03:00
yuyi
a006090b08
ast: minor cleanup of register_type_symbol (#12213) 2021-10-17 15:50:42 +03:00
ChAoS_UnItY
4d1307f29b
all: index accessor in array init expression (#12181) 2021-10-15 03:57:49 +03:00
ChAoS_UnItY
6f629d1a6a
transformer: eliminate unreachable branches & redundant branch expressions in MatchExpr (#12174) 2021-10-14 02:15:52 +03:00
Alexander Ivanov
0386f2bbea
checker: add an interface check for mutability, fixes #1081, fixes #7038 (#11963) 2021-10-11 15:41:31 +03:00
yuyi
83bc9b35b1
ast: fix checking generic fn call with fntype arg mismatch (#12132) 2021-10-10 11:14:19 +03:00