Commit graph

12 commits

Author SHA1 Message Date
40c28d9496 Simplify creating Var 2022-11-22 17:14:52 +01:00
6f7683ad1e Simplify creating Field 2022-11-22 17:06:56 +01:00
009be99aaa Simplify creating Call 2022-11-22 16:55:27 +01:00
58106c4c5a Simplify creating TableConstrElem 2022-11-22 16:44:33 +01:00
45caafdc38 Simplify creating Lit 2022-11-22 16:29:31 +01:00
fafc567447 Simplify creating Expr 2022-11-22 16:29:21 +01:00
42369628b6 Simplify boxing Expr 2022-11-22 15:32:23 +01:00
5a977e6dde Simplify creating TableLit and TableConstr 2022-11-22 15:21:40 +01:00
c769d9e16f Simplify creating BoundedSeparated
Along with this comes the decision to no longer track whitespace and
comments across desugarings in most cases. The main reason for this
decision is that not having to track whitespace simplifies the code and
reasoning necessary.

While implementing desugarings, I also realized that the current comment
model doesn't let me accurately track whitespace across desugarings. I'm
fairly sure I haven't yet found a good model for whitespace and
comments. Once I find one, adding pretty printing support for those
should hopefully be easy though.
2022-11-22 15:21:35 +01:00
d4797c5894 Simplify creating string literal from ident 2022-11-22 10:32:17 +01:00
0e9cfd67c2 Switch TablConstr to BoundedSeparated 2022-11-21 23:54:40 +01:00
ca979edd7c Desugar variable access and assignment 2022-11-21 15:14:18 +01:00