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
Brian Carroll
6fabeb345b
edit comment
2021-12-31 21:23:15 +00:00
Brian Carroll
4a6b79b686
Wasm tests: Skip linking step (and all filesystem access) when not needed
2021-12-31 21:23:15 +00:00
Brian Carroll
84661b7ae1
Rename BuildType -> TestType
2021-12-31 21:23:15 +00:00
Brian Carroll
01f293125a
Delete debug code that has been superseded
2021-12-31 21:23:15 +00:00
Brian Carroll
a2e58f8530
Split wasm test code into smaller well-named functions
2021-12-31 21:23:15 +00:00
Brian Carroll
d66d432716
Wasm tests: speed up 3x by only exporting refcount symbols when used
...
49s vs 2m10s
2021-12-31 21:23:15 +00:00
Folkert
ee9f0b2f04
force imported thunks when assigned to a variable
2021-12-31 21:44:07 +01:00
Folkert
2c97c840fc
walk the chain till we find a tag union to make recursive
2021-12-31 14:26:23 +01:00
Brian Carroll
f767014f30
Merge pull request #2301 from rtfeldman/wasm-refcount-list
...
Wasm refcounting for lists
2021-12-31 13:25:38 +00:00
Richard Feldman
4c62e335e5
Merge pull request #2305 from rtfeldman/soundness-assignment-tag-destructure
...
Parse tag destructures in defs, and make sure they are type-checked as closed unions
2021-12-31 07:13:03 -05:00
ayazhafiz
f56754a539
Remove bad test
...
We shouldn't expect to generate code for tag destructures that are type
errors
2021-12-30 20:59:59 -06:00
ayazhafiz
983a9f7e17
Position correct basic block before calling error catcher
...
While building the main function for tests, we may need to generate
additional blocks while marshalling arugments to the error catcher into
the expected calling convention. This pushes the last block in the main
function down, so that the "entry" block may not be last BB in the
function. Instead, look up the last insertion block before generating
the catcher, and then add a call to the catcher at the end of this last
block.
Closes #2300
2021-12-30 20:55:43 -06:00
ayazhafiz
8e7ca57458
Close tag unions that are in the left hand side of an assignment
2021-12-30 19:51:14 -06:00
ayazhafiz
0c81302d29
Admit tag destructuring in definitions
2021-12-30 19:50:50 -06:00