Add attributes to Foreign_Import_Decl in clone

This commit is contained in:
gingerBill
2024-06-03 22:21:54 +01:00
parent 8e9716ea2f
commit 4dac577caa

View File

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