Anton-4
56dc06a139
fixed the previous formatting change when inside longer pipeline
2022-03-09 14:07:52 +01:00
Anton-4
dd85caa85a
removed redundant derefs
2022-03-08 13:56:43 +01:00
Anton-4
d8b4feb659
fmt+clippy
2022-03-07 16:24:30 +01:00
Anton-4
21a30b1e83
fixed indentation for apply args
2022-03-07 16:23:15 +01:00
Anton-4
454933e2c6
fixed unnecessary double indentation
2022-03-07 16:02:11 +01:00
Brendan Hansknecht
f7c0e2ef19
Merge remote-tracking branch 'origin/trunk' into single-quote-literal
2022-02-24 10:13:39 -08:00
ayazhafiz
6104a27b45
Parse opaque references
2022-02-19 21:30:42 -05:00
ayazhafiz
fa24e51593
Parse opaque types
2022-02-19 18:38:31 -05:00
ayazhafiz
a6f7579c07
Parse and expand numeric bounds in canonicalization pass
2022-02-01 22:50:46 -05:00
ayazhafiz
9f72b2710f
Run linter
2022-02-01 22:49:52 -05:00
ayazhafiz
320827167f
Parse number literal width suffixes
...
Supports [u,i][8,16,32,64,128] and [nat,dec]
Part of #2350
2022-02-01 22:48:48 -05:00
Joshua Warner
8d6eb178b1
Fix multiline pattern heuristic
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
22e2545fd6
format
2021-12-22 20:46:42 -08:00
Joshua Warner
4d7070ce3b
Always combine line,column into Position
2021-12-22 20:32:46 -08:00
Joshua Warner
f19220473a
Rename Located -> Loc
2021-12-22 19:18:22 -08:00
Joshua Warner
48c207bb06
Remove trailing whitespace from the output of the formatter
2021-12-18 17:14:14 -08:00
Joshua Warner
86c8764012
Detangle lifetime annotations for Formattable
2021-12-14 19:52:53 -08:00
Joshua Warner
49228c8100
Refactor format_sequence to be a function
2021-12-07 18:53:47 -08:00
Joshua Warner
e3f2f8d9a4
keep indent state in fmt Buf
2021-12-04 18:26:32 -08:00
Joshua Warner
5d3d4467c1
Fix indentation & stability in with formatting
2021-12-03 13:33:25 -08:00
Richard Feldman
23fda0819f
Merge pull request #2112 from rtfeldman/joshuawarner32/fix-defs-indenting
...
Fix fmt_spaces indenting in the context of 3 or more newlines
2021-12-01 21:58:58 -05:00
Richard Feldman
ed40a8fc1c
Merge pull request #2114 from rtfeldman/joshuawarner32/fix-det-indentation
...
Fix indentation within parens
2021-12-01 19:38:07 -05:00
Joshua Warner
8ab7b121eb
Use newline in places where it should obviously be used
2021-12-01 16:14:27 -08:00
Joshua Warner
c0abf86f01
Fix indentation within parens
2021-11-30 17:55:50 -08:00
Joshua Warner
3228a23c98
Fix formatting of if as an left-hand-side of an operator
2021-11-30 17:53:26 -08:00
Chelsea Troy
6cf755ad8d
Resolve a bunnnch of merge conflicts
2021-11-29 23:14:29 -06:00
Folkert de Vries
d0da22edfa
Merge pull request #2089 from rtfeldman/joshuawarner32/fix-backpassing-formatting
...
Fix formatting of applies in backpassing
2021-11-27 15:46:10 +01:00
Joshua Warner
02b51bcd37
Fix formatting of applies in backpassing
2021-11-27 06:15:48 -08:00
Joshua Warner
e9d22699ed
Make sure unary operators around function calls get parens
2021-11-26 20:01:45 -08:00
Joshua Warner
a7e4861956
Fix formatting of if/else chains
2021-11-26 11:03:45 -08:00
Joshua Warner
24f7692a73
Implement [more] app header formatting
...
Also, refactor out a utility method to format a Collection. This method can currently
replace some of the formatting done in module headers - but the goal is eventually
to be able to replace the code in fmt_list as well, such that there is 'one true way'
to format collections.
2021-11-23 12:19:43 -08:00
ayazhafiz
8b7217847d
Rename additional stale roc_module::operator refs and format
2021-11-18 20:20:33 -05:00
ayazhafiz
8a60162a1e
Rename roc_module::operator -> roc_module::called_via
...
A bit of a nit, but this file is now more general than just keeping
track of operator methods.
2021-11-18 20:20:33 -05:00
Joshua Warner
9bf1674946
Shrink Collection to make parse_expr_size test pass
2021-11-13 16:17:44 -08:00
Joshua Warner
d63405d824
Make Expr::List use a Collection
2021-11-13 07:38:11 -08:00
Joshua Warner
a4ca6a31a6
Use Collection in Expr::Record and related places
2021-11-13 07:36:05 -08:00
Chadtech
8e0fd1b4cd
Dont borrow sub_expr
2021-10-16 18:08:18 -04:00
Chadtech
5e2decf89a
Binops with parentheses keep their parentheses
2021-10-16 18:01:13 -04:00
Chadtech
2ca9dad156
Do not add parens around exprs if they are not needed in formatting
2021-10-16 13:30:32 -04:00
Chelsea Troy
051b511d87
Remove parentheses from unapplied tags
2021-10-11 20:42:07 -05:00
Eric Correia
8272ea876f
Get it all to compile!
2021-10-02 13:48:07 -04:00
Folkert
e805e63db6
typos
2021-07-30 16:54:22 +02:00
Folkert
899cbeabd7
fix extra ampersands
2021-07-29 17:32:08 +02:00
Folkert
700e7d9686
parse expect
2021-04-22 23:00:44 +02:00
Folkert
28ba645121
parse underscores in expressions
2021-04-11 21:02:31 +02:00
Folkert
197835b6ed
remove nested in expr
2021-03-21 20:56:18 +01:00
Folkert
1871697b0f
remove BinOp variant
2021-03-20 23:01:12 +01:00
Folkert
6122b0650b
format binops
2021-03-20 22:29:02 +01:00
Folkert
d5ec66244f
use new binops
2021-03-20 21:19:10 +01:00