Commit graph

32309 commits

Author SHA1 Message Date
Luke Boswell
5b9e44fdb2
improve doc comments 2025-06-26 17:37:20 +10:00
Luke Boswell
9b5e4989f7
cleanup comments 2025-06-26 17:24:13 +10:00
Luke Boswell
15379434c7
fix NodeStore for expr_record and support rcoed shorthand syntax 2025-06-26 17:16:05 +10:00
Luke Boswell
8463f335d9
Remove redundant record_var in CIR.Expr 2025-06-26 16:44:50 +10:00
Luke Boswell
562e2a6b3b
WIP type_check records 2025-06-26 16:29:45 +10:00
Luke Boswell
5f4fa6af23
WIP type checking for records 2025-06-26 15:23:00 +10:00
Luke Boswell
852626fcb6
WIP type annotations 2025-06-26 15:10:00 +10:00
Luke Boswell
05ad361244
Fix statement snapshots, implement more Can for type annotations 2025-06-26 14:55:55 +10:00
Luke Boswell
32710be5bc
fix field_access SExpr for AST 2025-06-26 14:32:56 +10:00
Luke Boswell
ad4e71d987
always generate CANONICALIZE section in snapshots 2025-06-26 14:32:20 +10:00
Luke Boswell
341e04cc43
only include non-duplicate record fields in CIR 2025-06-26 14:10:12 +10:00
Luke Boswell
addbed5c65
use identsHaveSameText for more efficient Ident comparison 2025-06-26 13:51:24 +10:00
Luke Boswell
283e5e71e9
implement diagnostic for duplicate record field names 2025-06-26 13:30:05 +10:00
Luke Boswell
a66cf728a7
update snapshots 2025-06-26 13:05:25 +10:00
Luke Boswell
d0c6d82475
update snapshots 2025-06-26 13:04:16 +10:00
Luke Boswell
272e311811
implement basic record canonicalization 2025-06-26 13:04:15 +10:00
Luke Boswell
9284044079
Merge pull request #7874 from roc-lang/record-snaps
Add various examples of using records using 0.1 syntax
2025-06-26 13:03:21 +10:00
Luke Boswell
d815a3aa58
zig lints 2025-06-26 12:57:01 +10:00
Luke Boswell
81b3e4a9e1
adress feedback 2025-06-26 12:36:45 +10:00
Luke Boswell
43bfa58cba
adderss feedback 2025-06-26 12:36:27 +10:00
Luke Boswell
c9941a44ae
Merge pull request #7875 from roc-lang/type-check-annotations
Basic annotation type-checking
2025-06-26 11:41:45 +10:00
Richard Feldman
7c35ec023d
Add a missing int_precision case 2025-06-25 21:25:43 -04:00
Richard Feldman
663f5f13e9
Use Zig camelCase function naming convention 2025-06-25 21:25:43 -04:00
Richard Feldman
3d6c5cd406
Remove unnecessary special-case 2025-06-25 21:25:43 -04:00
Richard Feldman
862e7cdfa1
Change FloatingPoint to Fraction 2025-06-25 21:25:43 -04:00
Richard Feldman
5c5935d711
Add basic type-checking of type annotations 2025-06-25 21:25:43 -04:00
Richard Feldman
c44123c3e5
Precision should say Decimal, not Dec 2025-06-25 21:03:58 -04:00
Richard Feldman
0fedbe6f1c
Make getAnnotation take a const* NodeStore 2025-06-25 21:03:21 -04:00
Richard Feldman
683d79449c
Fix canonicalization of type annotations 2025-06-25 21:03:09 -04:00
Luke Boswell
d4e9584c6a
run snapshot tool 2025-06-26 11:01:11 +10:00
Luke Boswell
c08ada6296
add various examples of using records using 0.1 syntax 2025-06-26 10:56:31 +10:00
Luke Boswell
df2faf46e0
Merge pull request #7863 from roc-lang/cache-node-store
Initial round-trip cache for `CIR.NodeStore`
2025-06-26 09:05:14 +10:00
Luke Boswell
141cf5d730
fix some broken things 2025-06-26 08:57:58 +10:00
Luke Boswell
fd66436681
Merge branch 'main' into cache-node-store 2025-06-26 08:51:33 +10:00
Luke Boswell
bb02ed465c
Merge pull request #7871 from kdziamura/binops_can
map binop tokens to CIR
2025-06-26 08:49:57 +10:00
Luke Boswell
f001616fb7
Merge remote-tracking branch 'remote/main' into binops_can 2025-06-26 08:43:04 +10:00
Richard Feldman
b8636e7456
Merge pull request #7850 from roc-lang/can-ints
Convert canonicalized ints to their real runtime representations
2025-06-25 18:36:49 -04:00
Richard Feldman
f37e486618
Clean up some imports 2025-06-25 18:25:11 -04:00
Richard Feldman
122234cf6c
Merge remote-tracking branch 'origin/main' 2025-06-25 18:22:33 -04:00
Luke Boswell
8899dd3c85
Merge pull request #7869 from roc-lang/if-then-else
Implement `if-then-else` in Can
2025-06-26 08:12:40 +10:00
Luke Boswell
6fe3868963
update snapshot 2025-06-26 08:06:45 +10:00
Luke Boswell
b916db022f
restore AST changes 2025-06-26 08:06:25 +10:00
Luke Boswell
611950f9a6
Merge pull request #7872 from roc-lang/push-kvxvkkzxrsmw
Don't store region in type problem
2025-06-26 07:31:59 +10:00
Jared Ramirez
1c1259e43a
Don't store region in type problem 2025-06-25 17:23:44 -04:00
Richard Feldman
21bb9dba26
Clean up some comments 2025-06-25 17:07:24 -04:00
Richard Feldman
74f11feac5
Support scientific notation in Dec 2025-06-25 14:44:50 -04:00
Richard Feldman
d4b4399ddf
Render 0.0 instead of 0e0 2025-06-25 13:39:52 -04:00
Richard Feldman
2497a84367
Add a bunch of edge case snapshot tests 2025-06-25 13:37:36 -04:00
Richard Feldman
19bf6d512c
Improve e-dec-small rendering 2025-06-25 13:23:16 -04:00
Richard Feldman
e869d03815
Merge remote-tracking branch 'origin/main' into can-ints 2025-06-25 13:13:46 -04:00