Commit graph

6920 commits

Author SHA1 Message Date
Richard Feldman
afca1b9ee5 Revert "Use std.testing.free over destroy"
This reverts commit 7ba074353028907450c0eaad0da5cc32c4f38df8.
2022-01-02 22:43:15 -05:00
Richard Feldman
8c267f937b Use std.testing.free over destroy 2022-01-02 22:43:15 -05:00
Richard Feldman
e324366ecf zig fmt 2022-01-02 22:43:15 -05:00
Chelsea Troy
bf582b8120 Add C implementations for testing functions in zig 2022-01-02 14:55:56 -06:00
Chelsea Troy
e95c5f9a9d Include a public API for the failure collection 2022-01-02 14:08:25 -06:00
Chelsea Troy
39f6bde62c Install a temporary memory allocation solution to make the test work 2022-01-02 14:03:10 -06:00
Chelsea Troy
a6e2f1152e The tests run, but they don't work 2022-01-02 13:29:08 -06:00
Joshua Warner
9b24a4ed9b Fix dev backend problem reporter 2022-01-02 09:41:41 -08:00
Joshua Warner
e1c0acb650 Fix region formatting test issues 2022-01-02 09:13:04 -08:00
Brian Carroll
a85fdda07a Fix misalignment bug in wasm tests (copy/paste error) 2022-01-02 12:38:41 +00:00
Brian Carroll
aec8d1bf3d Merge branch 'trunk' of github.com:rtfeldman/roc into str_to_num 2022-01-02 12:31:59 +00:00
Joshua Warner
2553cae5de Fix region size check 2022-01-01 19:06:19 -08:00
Joshua Warner
9557c234cb Update recently added tests 2022-01-01 18:20:57 -08:00
Joshua Warner
8092f31a29 fmt 2022-01-01 18:20:05 -08:00
Joshua Warner
f969c7c6d0 Fixup rebase errors 2022-01-01 18:20:05 -08:00
Joshua Warner
5c1084c453 Introduce SourceError to represent an error + original source 2022-01-01 18:20:05 -08:00
Joshua Warner
8d6eb178b1 Fix multiline pattern heuristic 2022-01-01 18:20:05 -08:00
Joshua Warner
e97e5c3bd9 Fixup type annotations 2022-01-01 18:20:05 -08:00
Joshua Warner
9a92d51656 undo comment 2022-01-01 18:20:05 -08:00
Joshua Warner
5d94be2011 clippy 2022-01-01 18:20:05 -08:00
Joshua Warner
cb8cf44596 fmt 2022-01-01 18:20:05 -08:00
Joshua Warner
70156b0a90 Simplify advancing 2022-01-01 18:20:05 -08:00
Joshua Warner
2901549422 Assert new column calculation is correct 2022-01-01 18:20:05 -08:00
Joshua Warner
422cdea112 Track line start separately 2022-01-01 18:20:05 -08:00
Joshua Warner
5ac3394a73 Remove pos tracking 2022-01-01 18:20:05 -08:00
Joshua Warner
08a33aab1b Remove bytes tracking 2022-01-01 18:20:05 -08:00
Joshua Warner
beb0629e05 Track state in whitespace 2022-01-01 18:20:05 -08:00
Joshua Warner
a13c474f6b Remove line tracking in parser 2022-01-01 18:20:05 -08:00
Joshua Warner
8e1241adea Remove line/column fields 2022-01-01 18:20:05 -08:00
Joshua Warner
eb35e9914f Fix tests 2022-01-01 18:20:05 -08:00
Joshua Warner
4b04ec6bbc Add Position::offset, and recompute line/column info based on source 2022-01-01 18:20:05 -08:00
Joshua Warner
443d738f9b Make Position::{line, column} fields private 2022-01-01 18:20:05 -08:00
Joshua Warner
fae1bb4458 Add real impl of LineInfo 2022-01-01 18:20:05 -08:00
Joshua Warner
82d2be0635 Introduce LineColumnRegion and force conversion 2022-01-01 18:20:05 -08:00
Joshua Warner
721233f9c8 More incremental changes 2022-01-01 18:20:05 -08:00
Joshua Warner
1b257da356 Make State::xyzlcol a LineColumn, and change everything wanting a Position to use State::pos() instead 2022-01-01 18:20:05 -08:00
Joshua Warner
d2dcb462c7 Rename State::pos -> xyzlcol, temporarily 2022-01-01 18:20:05 -08:00
Joshua Warner
bd7b1e5013 Make Loc::new take Positions 2022-01-01 18:20:05 -08:00
Brian Carroll
1de26c084d Make Struct DecRef a no-op 2022-01-01 21:57:28 +00:00
Brian Carroll
98ab97083a For DecRef, remove assumption that the refcounted symbol is ARG_1 2022-01-01 21:57:28 +00:00
Brian Carroll
176bb6f6aa Use joinpoints for DecRef 2022-01-01 21:57:28 +00:00
Anton-4
86c537bcc4 added forgotten test attribute 2022-01-01 13:47:58 +01:00
Brian Carroll
e55806fe27 Update is_rc_implemented_yet 2022-01-01 12:33:36 +00:00
Brian Carroll
8078afc74f Delete a stray println from debug 2022-01-01 11:39:55 +00:00
Brian Carroll
953d82b341 Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-refcount-struct 2022-01-01 11:33:27 +00:00
Brian Carroll
310de090a3 Wasm: Refcounting for struct fields 2022-01-01 11:32:53 +00:00
Anton-4
f941e30b86 Merge branch 'trunk' of github.com:rtfeldman/roc into editor-comments 2022-01-01 11:10:54 +01:00
Richard Feldman
7476c2faf2
Merge pull request #2308 from rtfeldman/fix-2279
evaluate imported thunk when assigned to variable
2021-12-31 20:32:16 -05:00
Brian Carroll
ff0c0766ad Note on why refcount tests need result type 2021-12-31 23:53:51 +00:00
Brian Carroll
12a330dd76 Refactor to move all refcount IR gen to the same file 2021-12-31 23:09:11 +00:00