Joshua Warner
02b51bcd37
Fix formatting of applies in backpassing
2021-11-27 06:15:48 -08:00
Folkert
a1fd34feef
remove empty layout types (list,str,dict,set)
2021-11-27 14:05:16 +01:00
Richard Feldman
b96d95ab1b
Merge pull request #2088 from rtfeldman/joshuawarner32/fix-unary-parens-formatting
...
Make sure unary operators around function calls get parens
2021-11-27 01:48:15 -05:00
Joshua Warner
e9d22699ed
Make sure unary operators around function calls get parens
2021-11-26 20:01:45 -08:00
Richard Feldman
d39ecfd12d
Merge pull request #2052 from rtfeldman/i/1931-2
...
Some improvements to error messages regarding unbound type variables
2021-11-26 21:17:37 -05:00
Richard Feldman
5e0f2d93f0
Merge pull request #2087 from rtfeldman/joshuawarner32/improve-formatter-error-messages
...
Improve formatting of formatter error messages
2021-11-26 21:16:50 -05:00
Richard Feldman
71fbc4c8da
Merge pull request #2084 from rtfeldman/str-concat-segfault
...
Str concat segfault
2021-11-26 21:09:46 -05:00
Richard Feldman
262f1600d4
Merge pull request #2086 from rtfeldman/solve-unify-allocation
...
Type checking allocation tweaks
2021-11-26 21:09:05 -05:00
Joshua Warner
16cf95cf6e
Improve formatting of formatter error messages, and also write out the invalidly formatted file separately
2021-11-26 17:18:11 -08:00
Folkert de Vries
29c058ee08
Merge pull request #2085 from rtfeldman/set-refcounting-bugfix
...
Fix a bug in LLVM backend refcounting
2021-11-27 02:10:05 +01:00
Folkert
6934e69240
make deep_copy_var_to allocate less
2021-11-27 02:09:08 +01:00
Folkert
ed455777a2
give deep_copy_var_to a scratchpad
2021-11-27 01:42:11 +01:00
Folkert
471593ea31
make deep_copy_var use scratchpad arena
2021-11-27 01:32:47 +01:00
Folkert
2d0d54e13e
try stack allocation for small vectors
2021-11-27 01:31:48 +01:00
Brian Carroll
a9456639c7
Fix a bug in LLVM backend refcounting
2021-11-27 00:10:54 +00:00
Folkert de Vries
0a58d6e60e
Merge pull request #2082 from rtfeldman/joshuawarner32/assert-formatting-preserves-ast
...
Verify ast matches before/after formatting
2021-11-27 00:44:36 +01:00
Richard Feldman
74b8076bab
Merge pull request #2081 from rtfeldman/joshuawarner32/private-tag-fmt
...
Fix formatting of private tags
2021-11-26 18:03:31 -05:00
Richard Feldman
e2e095eb69
Merge pull request #2079 from rtfeldman/joshuawarner32/type-apply-package-name-fmt
...
Fix formatting in the presence of a pkg name in TypeAnnotation::Apply
2021-11-26 18:02:51 -05:00
Folkert
c925613cdc
swap argument order
2021-11-26 23:16:47 +01:00
Joshua Warner
2547c2ef47
Add comment
2021-11-26 14:03:49 -08:00
Joshua Warner
08c1317cf8
Verify ast matches before/after formatting
2021-11-26 14:00:36 -08:00
Joshua Warner
32a8222a37
Add test for formatting package type in TypeAnnotation::Apply
2021-11-26 13:58:17 -08:00
Joshua Warner
799e340c01
Fix formatting of private tags
2021-11-26 13:50:12 -08:00
Folkert
b873cb0e01
update hello zig platform
2021-11-26 22:48:22 +01:00
Folkert
48368f4fba
fix imports
2021-11-26 22:33:10 +01:00
Richard Feldman
8d668514e4
Merge pull request #2080 from rtfeldman/joshuawarner32/if-else-fmt
...
Fix formatting of if/else chains
2021-11-26 15:46:18 -05:00
Folkert
a3b3f5e970
Merge remote-tracking branch 'origin/trunk' into layout-soa
2021-11-26 21:41:25 +01:00
Folkert
6c1f3eedb7
dict and set layouts
2021-11-26 21:39:36 +01:00
Richard Feldman
837e0929bc
Merge pull request #2078 from rtfeldman/joshuawarner32/fix-newline-indent
...
Fix indent formatting in Def::AnnotatedBody
2021-11-26 15:38:54 -05:00
Folkert
047514bf39
flesh out FunctionLayout and LambdaSet
2021-11-26 20:55:12 +01:00
Joshua Warner
a7e4861956
Fix formatting of if/else chains
2021-11-26 11:03:45 -08:00
Joshua Warner
08e8b93bb6
Fix formatting in the presence of a package name in TypeAnnotation::Apply
2021-11-26 11:03:01 -08:00
Joshua Warner
27b83650ba
Fix indent formatting in Def::AnnotatedBody
2021-11-26 10:21:38 -08:00
Richard Feldman
2939780638
Merge pull request #2076 from rtfeldman/variable-subs-slice
...
Variable subs slice cleanup
2021-11-26 07:38:27 -05:00
Folkert de Vries
9638825761
Merge pull request #2075 from rtfeldman/joshuawarner32/impl-platform-header-formatting
...
Implement platform header formatting
2021-11-26 13:05:40 +01:00
Folkert
891c879439
most of the conversion
2021-11-25 23:27:59 +01:00
Folkert
b8eed51611
first attempt at layout soa
2021-11-25 22:09:20 +01:00
Folkert
b4f21930bb
cleanup
2021-11-25 20:49:44 +01:00
Folkert
612f868652
make VariableSubsSlice an alias
2021-11-25 20:29:34 +01:00
Folkert
69a80872e1
rename start -> index
2021-11-25 19:46:05 +01:00
ayazhafiz
d352d2cdf8
Revert "Include annotation type signatures in Expected
struct"
...
This reverts commit 6e4fd5f06a1ae6138659b0073b4e2b375a499588.
This idea didn't work out because cloning the type and storing it on a
variable still resulted in the solver trying to uify the variable with
the type. When there were errors, which there certainly would be if we
tried to unify the variable with a structure that had nested flex/rigid
vars, the nested flex/rigid vars would inherit those errors, and the
program wouldn't typecheck.
Since the motivation here was to expose the signature type to
`reporting` so that we could modify it with suggestions, we should
instead pass that information along in something analogous to the
`Expected` struct.
2021-11-25 13:24:42 -05:00
ayazhafiz
a8e38172ac
Remove redundant refs
2021-11-25 11:22:19 -05:00
Joshua Warner
f25323e8a7
Implement platform header formatting
2021-11-25 08:19:31 -08:00
ayazhafiz
ba678d924d
Remove unused variables
2021-11-25 11:16:18 -05:00
ayazhafiz
7f6a8cbaea
Improve wildcard collision error message from Richard's review
2021-11-25 11:16:18 -05:00
ayazhafiz
31d4536449
Remove variable that no longer exists
2021-11-25 11:16:18 -05:00
ayazhafiz
fe85af8d03
Fix failing compilation in Expr2
2021-11-25 11:16:18 -05:00
ayazhafiz
3b7596dd34
Remove redundant clones
2021-11-25 11:16:18 -05:00
ayazhafiz
5542441d42
Add an additional test for wildcard conflicts and type var suggestions
2021-11-25 11:16:18 -05:00
ayazhafiz
3f3a34382c
Suggest non-conflicting type variable name for wildcard renaming
...
There is still a potential for conflicts here, because we don't look at
type variables introduced _prior_ to this annotation. However, this
should be okay in most cases.
2021-11-25 11:16:18 -05:00