diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-10-05 18:05:07 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-10-05 18:05:07 -0400 |
| commit | c74fba540448f1d4b1aec4de8f3d9ffc395fdde0 (patch) | |
| tree | 67f2f62e2ccf1889ebbeef725a6782b8ba9f5912 /src/ast.c | |
| parent | 398d2cab6988e20c59e7037ff7ef551540339abb (diff) | |
Deprecate `deserialize` keyword and `.serialized()` method
Diffstat (limited to 'src/ast.c')
| -rw-r--r-- | src/ast.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -274,7 +274,6 @@ Text_t ast_to_sexp(ast_t *ast) { T(Assert, "(Assert ", ast_to_sexp(data.expr), " ", optional_sexp("message", data.message), ")"); T(Use, "(Use ", optional_sexp("var", data.var), " ", quoted_text(data.path), ")"); T(InlineCCode, "(InlineCCode ", ast_list_to_sexp(data.chunks), optional_type_sexp("type", data.type_ast), ")"); - T(Deserialize, "(Deserialize ", type_ast_to_sexp(data.type), " ", ast_to_sexp(data.value), ")"); default: errx(1, "S-expressions are not implemented for this AST"); #undef T } @@ -676,10 +675,6 @@ void ast_visit(ast_t *ast, void (*visitor)(ast_t *, void *), void *userdata) { ast_visit_list(Match(ast, InlineCCode)->chunks, visitor, userdata); return; } - case Deserialize: { - ast_visit(Match(ast, Deserialize)->value, visitor, userdata); - return; - } default: errx(1, "Visiting is not supported for this AST: %s", Text$as_c_string(ast_to_sexp(ast))); #undef T } @@ -777,10 +772,6 @@ static void _type_ast_visit(ast_t *ast, void *userdata) { _recursive_type_ast_visit(Match(ast, InlineCCode)->type_ast, userdata); break; } - case Deserialize: { - _recursive_type_ast_visit(Match(ast, Deserialize)->type, userdata); - break; - } default: break; } } |
