Browse Source

Add `ast.Foreign_Import_Decl` to `ast.clone`

gingerBill 1 year ago
parent
commit
8e9716ea2f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      core/odin/ast/clone.odin

+ 1 - 0
core/odin/ast/clone.odin

@@ -279,6 +279,7 @@ clone_node :: proc(node: ^Node) -> ^Node {
 			r.body            = clone(r.body)
 		case ^Foreign_Import_Decl:
 			r.name = auto_cast clone(r.name)
+			r.fullpaths = auto_cast clone_array(r.fullpaths)
 		case ^Proc_Group:
 			r.args = clone(r.args)
 		case ^Attribute: