aboutsummaryrefslogtreecommitdiff
path: root/src/ast.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-10-04 23:10:43 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-10-04 23:10:43 -0400
commita4cb5ffafc050b519f806f74f0160ad48f76bee6 (patch)
tree7a55f9b2e7c680eaccfa81c3734efdda71e848a3 /src/ast.c
parent4cb2ea78760fabcbf526dee5962a6bf4896639f3 (diff)
Deprecate `extend`
Diffstat (limited to 'src/ast.c')
-rw-r--r--src/ast.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/ast.c b/src/ast.c
index 302ced72..dfc1213c 100644
--- a/src/ast.c
+++ b/src/ast.c
@@ -275,7 +275,6 @@ Text_t ast_to_sexp(ast_t *ast) {
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), ")");
- T(Extend, "(Extend \"", data.name, "\" ", ast_to_sexp(data.body), ")");
default: errx(1, "S-expressions are not implemented for this AST");
#undef T
}
@@ -681,10 +680,6 @@ void ast_visit(ast_t *ast, void (*visitor)(ast_t *, void *), void *userdata) {
ast_visit(Match(ast, Deserialize)->value, visitor, userdata);
return;
}
- case Extend: {
- ast_visit(Match(ast, Extend)->body, visitor, userdata);
- return;
- }
default: errx(1, "Visiting is not supported for this AST: %s", Text$as_c_string(ast_to_sexp(ast)));
#undef T
}