diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 16:28:57 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 16:28:57 -0400 |
| commit | fd74479a2bf2e4ccc35d1c2fa206de8f28be1e54 (patch) | |
| tree | 0cdf5c4659264b612b5f3fbb4ce6a3b11dd736f5 /src/formatter | |
| parent | 92185a002a2e8b669add454a945c0ecdc0904993 (diff) | |
Deprecate optional '?' postfix operator
Diffstat (limited to 'src/formatter')
| -rw-r--r-- | src/formatter/formatter.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/formatter/formatter.c b/src/formatter/formatter.c index a07b903d..69c1a213 100644 --- a/src/formatter/formatter.c +++ b/src/formatter/formatter.c @@ -269,10 +269,6 @@ OptionalText_t format_inline_code(ast_t *ast, Table_t comments) { ast_t *val = Match(ast, StackReference)->value; return Texts("&", must(termify_inline(val, comments))); } - /*inline*/ case Optional: { - ast_t *val = Match(ast, Optional)->value; - return Texts(must(termify_inline(val, comments)), "?"); - } /*inline*/ case NonOptional: { ast_t *val = Match(ast, NonOptional)->value; return Texts(must(termify_inline(val, comments)), "!"); @@ -698,11 +694,6 @@ Text_t format_code(ast_t *ast, Table_t comments, Text_t indent) { ast_t *val = Match(ast, StackReference)->value; return Texts("&(", termify(val, comments, indent), ")"); } - /*multiline*/ case Optional: { - if (inlined_fits) return inlined; - ast_t *val = Match(ast, Optional)->value; - return Texts(termify(val, comments, indent), "?"); - } /*multiline*/ case NonOptional: { if (inlined_fits) return inlined; ast_t *val = Match(ast, NonOptional)->value; |
