diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 18:16:32 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 18:16:32 -0400 |
| commit | 7e3e245f6809946ea06ef1998bcabb7e0902fbd7 (patch) | |
| tree | 67c06d75ecff021cd70073f8a7da278cfe7f6410 /src/formatter/formatter.c | |
| parent | 7198afcfec38f8f0cc82e093567e2b098a42970f (diff) | |
Deprecate `defer`
Diffstat (limited to 'src/formatter/formatter.c')
| -rw-r--r-- | src/formatter/formatter.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/formatter/formatter.c b/src/formatter/formatter.c index 42204b01..0123282c 100644 --- a/src/formatter/formatter.c +++ b/src/formatter/formatter.c @@ -128,8 +128,6 @@ OptionalText_t format_inline_code(ast_t *ast, Table_t comments) { Text_t message = fmt_inline(assert->message, comments); return Texts("assert ", expr, ", ", message); } - /*inline*/ case Defer: - return Texts("defer ", fmt_inline(Match(ast, Defer)->body, comments)); /*inline*/ case Lambda: { DeclareMatch(lambda, ast, Lambda); Text_t code = Texts("func(", format_inline_args(lambda->args, comments)); @@ -575,8 +573,6 @@ Text_t format_code(ast_t *ast, Table_t comments, Text_t indent) { DeclareMatch(extend, ast, Extend); return Texts("lang ", Text$from_str(extend->name), format_namespace(extend->body, comments, indent)); } - /*multiline*/ case Defer: - return Texts("defer ", format_namespace(Match(ast, Defer)->body, comments, indent)); /*multiline*/ case List: { if (inlined_fits) return inlined; ast_list_t *items = Match(ast, List)->items; |
