aboutsummaryrefslogtreecommitdiff
path: root/src/formatter/formatter.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-10-05 18:05:07 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-10-05 18:05:07 -0400
commitc74fba540448f1d4b1aec4de8f3d9ffc395fdde0 (patch)
tree67f2f62e2ccf1889ebbeef725a6782b8ba9f5912 /src/formatter/formatter.c
parent398d2cab6988e20c59e7037ff7ef551540339abb (diff)
Deprecate `deserialize` keyword and `.serialized()` method
Diffstat (limited to 'src/formatter/formatter.c')
-rw-r--r--src/formatter/formatter.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/formatter/formatter.c b/src/formatter/formatter.c
index 41b1c4aa..55fff920 100644
--- a/src/formatter/formatter.c
+++ b/src/formatter/formatter.c
@@ -366,11 +366,6 @@ OptionalText_t format_inline_code(ast_t *ast, Table_t comments) {
Text_t space = op_tightness[ast->tag] >= op_tightness[Multiply] ? EMPTY_TEXT : Text(" ");
return Texts(lhs, space, Text$from_str(binop_info[ast->tag].operator), space, rhs);
}
- /*inline*/ case Deserialize: {
- DeclareMatch(deserialize, ast, Deserialize);
- return Texts("deserialize(", fmt_inline(deserialize->value, comments), " -> ", format_type(deserialize->type),
- ")");
- }
/*inline*/ case Use: {
DeclareMatch(use, ast, Use);
// struct {
@@ -806,12 +801,6 @@ Text_t format_code(ast_t *ast, Table_t comments, Text_t indent) {
Text_t space = op_tightness[ast->tag] >= op_tightness[Multiply] ? EMPTY_TEXT : Text(" ");
return Texts(lhs, space, Text$from_str(binop_info[ast->tag].operator), space, rhs);
}
- /*multiline*/ case Deserialize: {
- if (inlined_fits) return inlined;
- DeclareMatch(deserialize, ast, Deserialize);
- return Texts("deserialize(", fmt(deserialize->value, comments, indent), " -> ", format_type(deserialize->type),
- ")");
- }
/*multiline*/ case Use: {
assert(inlined.length > 0);
return inlined;