commit 3b3409f43adaee42d85445ed2e0eed96f2dbea29
parent 6ce91d72cf90c1db70a8c8013375304bddb670f9
Author: Sebastian <sebastian@sebsite.pw>
Date: Thu, 21 Apr 2022 15:41:50 -0400
hare::ast: struct_constant_free -> struct_constant_finish
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hare/ast/expr.ha b/hare/ast/expr.ha
@@ -503,7 +503,7 @@ case let e: expr =>
};
free(a.values);
case let s: struct_constant =>
- struct_constant_free(s);
+ struct_constant_finish(s);
case let t: tuple_constant =>
for (let i = 0z; i < len(t); i += 1) {
expr_finish(t[i]);
@@ -601,7 +601,7 @@ case let e: expr =>
};
};
-fn struct_constant_free(s: struct_constant) void = {
+fn struct_constant_finish(s: struct_constant) void = {
ident_free(s.alias);
for (let i = 0z; i < len(s.fields); i += 1) {
match (s.fields[i]) {
@@ -610,7 +610,7 @@ fn struct_constant_free(s: struct_constant) void = {
type_finish(v._type);
expr_finish(v.init);
case let c: *struct_constant =>
- struct_constant_free(*c);
+ struct_constant_finish(*c);
free(c);
};
};