diff options
| author | gingerBill <bill@gingerbill.org> | 2018-06-17 11:03:26 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-06-17 11:03:26 +0100 |
| commit | 5b71ffd4f9e0ea17ccf81ef84800fde7efd32fb9 (patch) | |
| tree | c58767ff6f560682f84ea7e19a913f1ab8646744 /src/check_expr.cpp | |
| parent | c2ca24a486319c0e8b9a5cd0c377a9d66eb036d3 (diff) | |
Rename `clone_ast_node` to `clone_ast`
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index c171446c9..b185b6438 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -316,7 +316,7 @@ bool find_or_generate_polymorphic_procedure(CheckerContext *c, Entity *base_enti - Ast *proc_lit = clone_ast_node(a, old_decl->proc_lit); + Ast *proc_lit = clone_ast(old_decl->proc_lit); ast_node(pl, ProcLit, proc_lit); // NOTE(bill): Associate the scope declared above withinth this procedure declaration's type add_scope(&nctx, pl->type, final_proc_type->Proc.scope); @@ -335,7 +335,7 @@ bool find_or_generate_polymorphic_procedure(CheckerContext *c, Entity *base_enti } u64 tags = base_entity->Procedure.tags; - Ast *ident = clone_ast_node(a, base_entity->identifier); + Ast *ident = clone_ast(base_entity->identifier); Token token = ident->Ident.token; DeclInfo *d = make_decl_info(nctx.allocator, scope, old_decl->parent); d->gen_proc_type = final_proc_type; @@ -4867,7 +4867,7 @@ CallArgumentError check_polymorphic_struct_type(CheckerContext *c, Operand *oper String generated_name = make_string_c(expr_to_string(call)); Type *named_type = alloc_type_named(generated_name, nullptr, nullptr); - Ast *node = clone_ast_node(a, st->node); + Ast *node = clone_ast(st->node); Type *struct_type = alloc_type_struct(); struct_type->Struct.node = node; struct_type->Struct.polymorphic_parent = original_type; |