Commit graph

6490 commits

Author SHA1 Message Date
Agus Zubiaga
36df43fadc
Handle simple aliased fn in params value def 2024-08-27 01:27:54 -03:00
Agus Zubiaga
6cffe9b1db
Return params in params_extended_home_symbol 2024-08-27 00:32:35 -03:00
Agus Zubiaga
3c6a2f11d7
Capture params in lowered passed fns from importer side 2024-08-27 00:02:26 -03:00
Agus Zubiaga
b667753a32
Capture import params def 2024-08-26 23:31:42 -03:00
Agus Zubiaga
0bf833dae9
Lower passed imported functions 2024-08-26 23:21:18 -03:00
Agus Zubiaga
2f4e80b696
Gather arities while building can declarations 2024-08-26 22:39:35 -03:00
Agus Zubiaga
4e35a68f98
Do not lower params for check and lang srv 2024-08-26 22:00:25 -03:00
Agus Zubiaga
50f8f2cb1d
Use correct function bodies index 2024-08-26 21:49:56 -03:00
Agus Zubiaga
ef2073ba4c
Use var from home_params_argument 2024-08-23 17:11:53 -03:00
Agus Zubiaga
be4ebfe901
Lower passed top-level functions in a module with params 2024-08-21 20:07:08 -03:00
Agus Zubiaga
0adad85634
Move lower_params/lib to lower_params/lower 2024-08-17 16:23:17 -03:00
Agus Zubiaga
50887e6265
Capture params in nested defs 2024-08-17 16:13:44 -03:00
Agus Zubiaga
c85c634387
Visit all declarations while lowering params 2024-08-17 15:23:28 -03:00
Agus Zubiaga
6588a32195
Visit the whole Expr tree while lowering params 2024-08-17 15:10:54 -03:00
Agus Zubiaga
bcd8e7e28a
Lower top-level fn calls in home module with params 2024-08-17 13:44:19 -03:00
Agus Zubiaga
07ec24502e
Lower top-level value references in home module with params 2024-08-17 13:25:17 -03:00
Agus Zubiaga
519ff56a85
Create can::module::ModuleParams for convenience 2024-08-17 13:10:37 -03:00
Agus Zubiaga
e80e3e5b2d
Convert top-level value def to fn taking params 2024-08-17 11:21:21 -03:00
Agus Zubiaga
97ddae7e3d
Lower params when calling imported functions 2024-08-17 01:03:34 -03:00
Agus Zubiaga
7a8b9f7d6d
Add variable to ParamsVar 2024-08-16 20:54:16 -03:00
Sam Mohr
a14a110293
Merge pull request #7000 from smores56/try-suffix-ast-node
Combine ! and ? into single TrySuffix AST node
2024-08-15 09:31:59 -07:00
Sam Mohr
0fd0cc11aa
Format code 2024-08-14 22:26:32 -07:00
Sam Mohr
3bc5c1dc12
Combine ! and ? into single TrySuffix AST node 2024-08-14 22:14:08 -07:00
Luke Boswell
172b30ff54
Merge pull request #6998 from roc-lang/macos-codesign
use macos codesign
2024-08-15 07:32:30 +10:00
Anton-4
47978c8a20
use macos codesign
Anaconda also has a codesign and we want to use the macos one, see https://github.com/pyinstaller/pyinstaller/issues/8581#issuecomment-2147311833

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-08-14 17:01:17 +02:00
Luke Boswell
2eb3e38b7f
Merge remote-tracking branch 'remote/main' into result-map-builtins 2024-08-14 17:26:10 +10:00
Luke Boswell
6bae15c467
resolve review comments 2024-08-14 17:24:12 +10:00
Luke Boswell
45f18bd64e
update mono snapshots 2024-08-14 13:17:52 +10:00
Luke Boswell
7aebee8c94
implement Result.mapBoth and Result.map2 builtins 2024-08-14 13:16:24 +10:00
Luke Boswell
a5ae2608ea
fix incorrect name from merge 2024-08-14 09:13:57 +10:00
Luke Boswell
5c43bd2cee
Merge remote-tracking branch 'remote/main' into rebuild-platform 2024-08-14 09:12:12 +10:00
Joshua Warner
2d9aa00771
Rename RemoveSpaces->Normalize 2024-08-12 23:05:55 -07:00
Joshua Warner
6835041a61
Normalize string encoding as part of RemoveSpaces 2024-08-12 23:05:45 -07:00
Agus Zubiaga
b451e69b20
Merge branch 'main' into typecheck-module-params 2024-08-12 22:27:16 -03:00
Joshua Warner
0abea91796
Rename Full -> FullAst 2024-08-10 16:06:01 -07:00
Joshua Warner
d25c048d48
Move Full from fmt to parse and reorganize confusingly-named Module ast type 2024-08-07 23:01:49 -07:00
Agus Zubiaga
762799052e
Merge branch 'main' into typecheck-module-params 2024-08-07 18:55:33 -03:00
Sam Mohr
698bbc3cf1
Merge pull request #6968 from smores56/ignored-record-builder-fields
Ignore underscore-prefixed fields in record builders
2024-08-06 23:36:27 -07:00
Sam Mohr
00bc699642
Add syntax tests for record builder 2024-08-06 22:49:35 -07:00
Sam Mohr
cb8040f629
Ignore underscore-prefixed fields in record builders 2024-08-06 22:49:35 -07:00
Agus Zubiaga
7027547182
Load platform dependencies
We were dropping packages from the platform header while loading.

Closes #6931
2024-08-06 18:15:28 -03:00
Anton-4
ed4e831347
fmt Num.roc 2024-08-05 11:55:53 +02:00
Anton-4
dd3d3810fb
added workaround
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-08-03 14:43:09 +02:00
Anton-4
fd8b7355f6
Num.neg docs
See also https://github.com/roc-lang/roc/issues/6959

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-08-03 14:37:00 +02:00
Anton-4
60ca8382a5
improve abilities error 2024-08-03 11:57:23 +02:00
Anton-4
d23426ac47
Merge pull request #6941 from roc-lang/improve-tip
improve opaque types tip
2024-07-31 13:48:51 +02:00
Anton-4
30a76a092b
improve opaque types tip 2024-07-30 16:06:23 +02:00
Joshua Warner
c49dc1b9d6
Merge pull request #6938 from joshuawarner32/fix-unreachable 2024-07-30 06:57:36 -07:00
Joshua Warner
939f9cb7e9
Give an error for record builders in patterns instead of crashing 2024-07-29 22:54:25 -07:00
Joshua Warner
ca037c5d0e
Merge branch 'main' into fix-deprecated-interpolated-formatting 2024-07-29 17:40:23 -07:00