aboutsummaryrefslogtreecommitdiff
path: root/src/parse/suffixes.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-09-21 16:28:57 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-09-21 16:28:57 -0400
commitfd74479a2bf2e4ccc35d1c2fa206de8f28be1e54 (patch)
tree0cdf5c4659264b612b5f3fbb4ce6a3b11dd736f5 /src/parse/suffixes.c
parent92185a002a2e8b669add454a945c0ecdc0904993 (diff)
Deprecate optional '?' postfix operator
Diffstat (limited to 'src/parse/suffixes.c')
-rw-r--r--src/parse/suffixes.c7
1 files changed, 0 insertions, 7 deletions
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;