Commit graph

654 commits

Author SHA1 Message Date
Agus Zubiaga
922b1c44ef
Report missing params 2024-07-02 11:10:00 -03:00
Agus Zubiaga
bc6a84a215
Report unexpected params 2024-07-02 11:09:59 -03:00
Agus Zubiaga
db76ab4015
Replace params in abilities TODOs with unimplemented! 2024-07-02 11:09:59 -03:00
Agus Zubiaga
42c58d8efe
Use Vec instead of VecMap for scope module sources 2024-07-02 11:09:59 -03:00
Agus Zubiaga
702092859e
Add pattern type for module params 2024-07-02 11:09:59 -03:00
Agus Zubiaga
90c7745989
Capture import params location for better errors 2024-07-02 11:09:56 -03:00
Agus Zubiaga
5ec4b042bb
Constrain and solve import params
No reporting yet
2024-07-02 04:10:46 -03:00
Agus Zubiaga
c541dd5747
Do not report import params symbol as unused 2024-07-02 04:10:46 -03:00
Agus Zubiaga
8604bb23b2
Include param's record references 2024-07-02 04:10:46 -03:00
Agus Zubiaga
674adf1fad
Wrap import params expr so we can constrain later 2024-07-02 04:10:46 -03:00
Agus Zubiaga
717463079a
Add module params to module cache 2024-07-02 04:10:45 -03:00
Agus Zubiaga
3a1d3d4ddb
Reuse record destructure can for module params 2024-07-02 04:10:45 -03:00
Agus Zubiaga
7ac72159e9
Parse module params loc and rename to pattern 2024-07-02 04:10:45 -03:00
Agus Zubiaga
c6e42ecf0c
Canonicalize module param patterns 2024-07-02 04:10:45 -03:00
Agus Zubiaga
1526fc4aee
can::Expr::ParamsVar for lookups with params 2024-07-02 04:10:44 -03:00
Agus Zubiaga
5aebb7b570
Unqualified lookups return params 2024-07-02 04:10:44 -03:00
Agus Zubiaga
9d26adb228
Qualified lookups return params 2024-07-02 04:10:44 -03:00
Agus Zubiaga
96e2d32fa6
Canonicalize import params record 2024-07-02 04:10:44 -03:00
Agus Zubiaga
5e2ccdbfd5
Import params pending def 2024-07-02 04:10:44 -03:00
Kiryl Dziamura
819cfd6035
fix test snapshots 2024-07-01 19:48:00 +02:00
Kiryl Dziamura
6329389972
add tests 2024-07-01 19:47:49 +02:00
Kiryl Dziamura
1008b94259
fix returned expression desugaring 2024-07-01 19:46:59 +02:00
Kiryl Dziamura
de9ed734c5
remove EmptyDefsFinal 2024-07-01 18:45:23 +02:00
Kiryl Dziamura
9c133f72d8
test bang in dbg arg 2024-06-28 13:31:47 +02:00
Kiryl Dziamura
aa17d17c60
handle bang in dbg arg 2024-06-28 13:26:38 +02:00
Luke Boswell
1c091e6cd5
Merge pull request #6826 from JRI98/fix_6825
Handle multi pattern unbound list rest variables
2024-06-28 10:18:11 +10:00
Isak
cc7d3d3e1d
fix: allow multiple newlines between signature and body 2024-06-27 13:34:09 -04:00
Kiryl Dziamura
bff73ff6b2
check if final expr in deps is suffixed 2024-06-25 19:14:18 +02:00
JRI98
f4551978ce
Handle multi pattern unbound list rest variables 2024-06-21 17:01:49 +01:00
shua
f7bec802c0
PR: rename to List.concatUtf8 2024-06-08 13:36:20 +02:00
shua
33e8a7a439
implement Str.concatUtf8 2024-06-07 19:05:52 +02:00
Kiryl Dziamura
3e5cfb546d
check if when branch is suffixed 2024-06-03 23:45:54 +02:00
Kiryl Dziamura
967da48969
Fix typo 2024-06-03 16:58:40 +02:00
Kiryl Dziamura
8883ab9a91
Desugar expect continuation 2024-06-03 16:58:31 +02:00
Kiryl Dziamura
e86c6235c1
add multiple args test 2024-05-28 11:34:01 +02:00
Kiryl Dziamura
24f6e46c64
panic with unreachable error 2024-05-28 11:26:32 +02:00
Kiryl Dziamura
cbe5d127d7
fix typos 2024-05-28 09:48:54 +02:00
Kiryl Dziamura
ce6e21ff7a
ignore def pattern for function args 2024-05-27 18:21:00 +02:00
Richard Feldman
8357bd8c91
Revise errors for undeclared type vars in aliases 2024-05-12 21:20:11 -04:00
Agus Zubiaga
c0bb46517c
Desugar params in imports 2024-05-09 07:42:10 -03:00
Agus Zubiaga
e5a09b5de6
Parse module params in import 2024-05-09 07:42:07 -03:00
Ayaz
cc1bc68eb4
Merge pull request #6717 from roc-lang/optional-ingested-ann
Optional annotation in ingested file imports
2024-05-07 21:18:12 -05:00
Agus Zubiaga
8a25e4aac4
Handle optional annotation in ingested files when canonicalizing 2024-05-05 16:57:56 -03:00
Luke Boswell
9a7b62ac22
handle dbg when unwrapping suffixed ! 2024-05-04 21:37:47 +02:00
Anton-4
f7011c8e33
Merge pull request #6644 from roc-lang/rust-1-76-0-upgrade
Rust 1.76.0 upgrade
2024-05-03 07:25:19 +02:00
Agus Zubiaga
057a18573a
New module header
Implements the new `module` header syntax as described in "module and package changes" [1]:

```
module [Request, Response, req]
```

The old syntax should still work fine, and is automatically upgraded to the new one
when running `roc format`.

[1] https://docs.google.com/document/d/1E_77fO-44BtoBtXoVeWyGh1xN2KRTWTu8q6i25RNNx0/edit
2024-05-01 10:39:12 -03:00
Anton-4
c303be7553
Merge branch 'main' into rust-1-76-0-upgrade 2024-04-30 19:36:01 +02:00
Agus Zubiaga
a8a829aadd
Merge branch 'main' into inline-imports 2024-04-28 00:11:29 -03:00
Luke Boswell
74e531b994
remove suffixed from Ident::Access and cleanup 2024-04-28 08:48:08 +10:00
Luke Boswell
20f277c132
update later tests 2024-04-28 08:47:08 +10:00