Browse Source

Add attributes to Foreign_Import_Decl in `clone`

gingerBill 1 year ago
parent
commit
4dac577caa
1 changed files with 2 additions and 1 deletions
  1. 2 1
      core/odin/ast/clone.odin

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

@@ -278,8 +278,9 @@ clone_node :: proc(node: ^Node) -> ^Node {
 			r.foreign_library = clone(r.foreign_library)
 			r.foreign_library = clone(r.foreign_library)
 			r.body            = clone(r.body)
 			r.body            = clone(r.body)
 		case ^Foreign_Import_Decl:
 		case ^Foreign_Import_Decl:
+			r.attributes = clone_dynamic_array(r.attributes)
 			r.name = auto_cast clone(r.name)
 			r.name = auto_cast clone(r.name)
-			r.fullpaths = auto_cast clone_array(r.fullpaths)
+			r.fullpaths  = clone_array(r.fullpaths)
 		case ^Proc_Group:
 		case ^Proc_Group:
 			r.args = clone(r.args)
 			r.args = clone(r.args)
 		case ^Attribute:
 		case ^Attribute: