Aidan
91fdd903e7
comment
-> spaces_middle
2024-07-29 10:04:32 -04:00
Aidan
125990855f
Merge branch 'main' into store-all-space-between-annotation-body
2024-07-29 09:46:05 -04:00
Aidan
62dbe9fb53
update snapshots
2024-07-27 17:19:02 -04:00
Joshua Warner
4f32f43048
Implement block / indent based parsing
...
... and enforce that defs can only occur in blocks (or, inside parenthesized expressions)
2024-07-27 13:34:16 -07:00
Kiryl Dziamura
7aa31a1639
code cleanup
2024-07-23 23:16:50 +02:00
Kiryl Dziamura
863fb3b29f
remove obsolete test
2024-07-23 23:16:50 +02:00
Kiryl Dziamura
1f65d95e09
update suffixed tests snapshots
2024-07-23 23:16:49 +02:00
Kiryl Dziamura
56eae5df95
propagate type annotations to desugared ast
2024-07-23 23:16:47 +02:00
Kiryl Dziamura
1c01a8f0d3
remove measleading fmt code from snapshots
2024-07-14 09:52:01 +02:00
Kiryl Dziamura
8b95816797
generate snapshots
2024-07-13 20:46:23 +02:00
Kiryl Dziamura
8949fc710b
use snapshots for suffixed tests
2024-07-13 20:46:22 +02:00
Sam Mohr
b9a17f4a49
Merge pull request #6883 from smores56/new-builder-syntax
...
Implement new builder syntax alongside old one
2024-07-08 11:19:01 -07:00
Kiryl Dziamura
3f22c55dda
fix suffixed tests
2024-07-08 11:39:04 +02:00
Sam Mohr
fe1b6d71fc
Update from PR comments
2024-07-07 18:33:20 -07:00
Sam Mohr
f415017c90
Implement new builder syntax alongside old one
2024-07-07 03:28:59 -07: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
9c133f72d8
test bang in dbg arg
2024-06-28 13:31:47 +02: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
Kiryl Dziamura
3e5cfb546d
check if when branch is suffixed
2024-06-03 23:45:54 +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
ce6e21ff7a
ignore def pattern for function args
2024-05-27 18:21:00 +02:00
Luke Boswell
9a7b62ac22
handle dbg when unwrapping suffixed !
2024-05-04 21:37:47 +02:00
Agus Zubiaga
a8a829aadd
Merge branch 'main' into inline-imports
2024-04-28 00:11:29 -03:00
Luke Boswell
20f277c132
update later tests
2024-04-28 08:47:08 +10:00
Luke Boswell
db4607125b
remove suffixed from Pattern
2024-04-28 08:47:08 +10:00
Luke Boswell
2fe03e6c91
remove suffixed from Expr::Var
2024-04-28 08:47:08 +10:00
Luke Boswell
1640ee1321
update logic for Expr::TaskAwaitBang
2024-04-28 08:47:08 +10:00
Agus Zubiaga
f69bc2e46f
Merge branch 'main' into inline-imports
2024-04-23 18:57:20 -03:00
Luke Boswell
84cd4233be
clippy fix
2024-04-22 18:55:34 +10:00
Luke Boswell
32c4083364
add new tests for trailing !
2024-04-22 18:38:26 +10:00
Agus Zubiaga
5112e064e5
Add module_path to can env instead of threading it through
2024-04-21 10:30:34 -03:00
Agus Zubiaga
1f347f6ca1
Fix package module resolution in inline imports
...
We were still passing `ModuleIds` from `load` to `can`, but now
that imports can appear in any scope, we don't know which package
an unqualified module name belongs to from the top level.
We now pass `PackageModuleIds` instead and keep a Map of `ModuleName` to
`ModuleId` in `Scope`.
This also allow us to import multiple modules with the same name from different
packages as long as a unique alias is provided.
2024-04-20 12:16:37 -03:00
Agus Zubiaga
d5a38a26db
Merge branch 'main' into inline-imports
2024-04-20 12:01:11 -03:00
Richard Feldman
6059f7afcb
Merge pull request #6651 from roc-lang/fix-nesting-suffix
...
Fix recursion for suffixed `!` in top-level def
2024-04-19 14:53:34 -04:00
Luke Boswell
5e738a4ab5
fix recursion in top-level def
2024-04-19 10:34:33 +10:00
Luke Boswell
ae908f89a9
suffixed when branches
2024-04-18 12:47:11 +10:00
Luke Boswell
a889810dfd
unwrap suffixed when condition
2024-04-18 09:44:57 +10:00
Luke Boswell
0198a683c7
fix unwrapping of trailing expr
2024-04-17 09:54:29 +10:00
Luke Boswell
7a84dcd39c
don't unwrap intermediate answer if not required
2024-04-16 16:25:20 +10:00
Luke Boswell
7c94e4db04
cargo fmt
2024-04-15 14:38:20 +10:00
Luke Boswell
ee42dfc317
add support for if-then-else
2024-04-15 14:20:49 +10:00
Luke Boswell
2a222f3a51
optimise by not unwrapping sometimes
2024-04-15 10:02:03 +10:00
Luke Boswell
7886d30b8e
parse/unwrap nested defs
2024-04-15 09:25:00 +10:00
Luke Boswell
93ef5e42dc
fix tests, make clippy happy
2024-04-14 13:45:07 +10:00
Luke Boswell
f9fb59f0c2
cleanup and refactor suffixed tests
2024-04-14 13:45:07 +10:00
Luke Boswell
0143035dc0
cleanup, improve docs
2024-04-14 13:45:06 +10:00
Luke Boswell
c32fa5b600
support optional suffied last def
2024-04-14 13:45:06 +10:00