Commit graph

26 commits

Author SHA1 Message Date
ayazhafiz
fa24e51593 Parse opaque types 2022-02-19 18:38:31 -05:00
ayazhafiz
8ce81e4607 AliasHeader -> TypeHeader 2022-02-19 17:51:56 -05:00
Folkert
71cae79b02 fix annoying spaces debug_assert failure 2022-02-04 23:00:10 +01:00
ayazhafiz
966198a6e7 Coalesce inline and normal alias headers
Unifies `As` annotations and `Alias` defs to use a common struct for
defining alias header information, i.e. the name and type variables of
the alias.
2021-12-26 09:37:56 -06:00
Joshua Warner
f19220473a Rename Located -> Loc 2021-12-22 19:18:22 -08:00
Joshua Warner
6786acb939 Remove redundant space in aliases 2021-12-21 18:16:58 -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
e3f2f8d9a4 keep indent state in fmt Buf 2021-12-04 18:26:32 -08:00
Joshua Warner
27b83650ba Fix indent formatting in Def::AnnotatedBody 2021-11-26 10:21:38 -08:00
Folkert
700e7d9686 parse expect 2021-04-22 23:00:44 +02:00
Folkert
ce98da9d04 remove Nested from Def 2021-03-21 21:14:32 +01:00
Sébastien Besnier
83aa5c1642 add final_comments to List's AST 2020-12-28 18:17:56 +01:00
Sébastien Besnier
aa3ce94f86 fix formating newlines 2020-11-25 15:44:58 +01:00
Sébastien Besnier
7361f62902 format properly multiline type annotations 2020-11-25 15:15:32 +01:00
Sébastien Besnier
93b7ac5b0c remove duplicated is_comment function 2020-11-15 09:01:24 +01:00
Richard Feldman
ef90103353
Update compiler/fmt/src/def.rs 2020-11-08 22:11:38 -05:00
Sébastien Besnier
014131dabe handle AnnotatedBody everywhere. It compiles now! 2020-11-08 13:43:11 +01:00
Brendan Hansknecht
d00189530a Add fuzzing to the parser.
As part of this, todos and panics where moved outside of this module
to elsewhere when they would cause fuzzing to fail.
2020-10-30 22:04:54 -07:00
Richard Feldman
3c39a331d7 Remove obsolete parse::ast::TypedBody 2020-09-07 09:19:25 -04:00
Folkert
ba38d4ec14 cleanup 2020-07-10 23:54:00 +02:00
Folkert
9aa05fdc4c WIP 2020-07-10 23:54:00 +02:00
Folkert
36ccafd8ab cleanup 2020-07-10 23:54:00 +02:00
Folkert
e18d3bbfe4 use Parens type in pattern formatting 2020-07-10 23:54:00 +02:00
Folkert
672b67d527 initial version of annotation formatting 2020-07-09 17:41:21 +02:00
Richard Feldman
5a129a506a Move fmt 2020-03-06 18:24:37 -05:00
Renamed from compiler/src/fmt/def.rs (Browse further)