From fd74479a2bf2e4ccc35d1c2fa206de8f28be1e54 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 21 Sep 2025 16:28:57 -0400 Subject: Deprecate optional '?' postfix operator --- src/parse/suffixes.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/parse/suffixes.c') diff --git a/src/parse/suffixes.c b/src/parse/suffixes.c index 312f958f..7493a65d 100644 --- a/src/parse/suffixes.c +++ b/src/parse/suffixes.c @@ -25,13 +25,6 @@ ast_t *parse_field_suffix(parse_ctx_t *ctx, ast_t *lhs) { return NewAST(ctx->file, lhs->start, pos, FieldAccess, .fielded = lhs, .field = field); } -ast_t *parse_optional_suffix(parse_ctx_t *ctx, ast_t *lhs) { - if (!lhs) return NULL; - const char *pos = lhs->end; - if (match(&pos, "?")) return NewAST(ctx->file, lhs->start, pos, Optional, .value = lhs); - else return NULL; -} - ast_t *parse_non_optional_suffix(parse_ctx_t *ctx, ast_t *lhs) { if (!lhs) return NULL; const char *pos = lhs->end; -- cgit v1.2.3