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/ast.c | |
| parent | 92185a002a2e8b669add454a945c0ecdc0904993 (diff) | |
Deprecate optional '?' postfix operator
Diffstat (limited to 'src/ast.c')
| -rw-r--r-- | src/ast.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -269,7 +269,6 @@ Text_t ast_to_sexp(ast_t *ast) { T(LangDef, "(LangDef \"", data.name, "\" ", ast_to_sexp(data.namespace), ")"); T(Index, "(Index ", ast_to_sexp(data.indexed), " ", ast_to_sexp(data.index), ")"); T(FieldAccess, "(FieldAccess ", ast_to_sexp(data.fielded), " \"", data.field, "\")"); - T(Optional, "(Optional ", ast_to_sexp(data.value), ")"); T(NonOptional, "(NonOptional ", ast_to_sexp(data.value), ")"); T(DocTest, "(DocTest ", ast_to_sexp(data.expr), optional_sexp("expected", data.expected), ")"); T(Assert, "(Assert ", ast_to_sexp(data.expr), " ", optional_sexp("message", data.message), ")"); @@ -655,10 +654,6 @@ void ast_visit(ast_t *ast, void (*visitor)(ast_t *, void *), void *userdata) { ast_visit(Match(ast, FieldAccess)->fielded, visitor, userdata); return; } - case Optional: { - ast_visit(Match(ast, Optional)->value, visitor, userdata); - return; - } case NonOptional: { ast_visit(Match(ast, NonOptional)->value, visitor, userdata); return; |
