From 91b6746fe1315aa9c09936b69cea3892c04c11af Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 25 Aug 2025 23:53:03 -0400 Subject: Split out formatter into subfiles --- src/formatter/types.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/formatter/types.h (limited to 'src/formatter/types.h') diff --git a/src/formatter/types.h b/src/formatter/types.h new file mode 100644 index 00000000..1f0698b3 --- /dev/null +++ b/src/formatter/types.h @@ -0,0 +1,9 @@ +// Logic for formatting types + +#pragma once + +#include "../ast.h" +#include "../stdlib/datatypes.h" + +OptionalText_t format_inline_type(type_ast_t *type, Table_t comments); +Text_t format_type(type_ast_t *type, Table_t comments, Text_t indent); -- cgit v1.2.3 From b5dee4f7ed1b8181df22a9824b7026a125ebbc53 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 26 Aug 2025 00:45:56 -0400 Subject: Actual type formatting --- src/formatter/types.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/formatter/types.h') diff --git a/src/formatter/types.h b/src/formatter/types.h index 1f0698b3..2571f880 100644 --- a/src/formatter/types.h +++ b/src/formatter/types.h @@ -5,5 +5,4 @@ #include "../ast.h" #include "../stdlib/datatypes.h" -OptionalText_t format_inline_type(type_ast_t *type, Table_t comments); -Text_t format_type(type_ast_t *type, Table_t comments, Text_t indent); +Text_t format_type(type_ast_t *type); -- cgit v1.2.3