From 254c5ee6b9ba1b9c77d65eada70ffa4607de0177 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Mon, 17 Jul 2023 16:51:22 +0200 Subject: [PATCH] Mcro - Made `MCloneable`'s `clone()` require a `Container` argument of which the final cloned `Statement` must parent-itself to --- source/tlang/compiler/symbols/mcro.d | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/tlang/compiler/symbols/mcro.d b/source/tlang/compiler/symbols/mcro.d index f6e69a5..6cdc43c 100644 --- a/source/tlang/compiler/symbols/mcro.d +++ b/source/tlang/compiler/symbols/mcro.d @@ -60,7 +60,11 @@ public interface MCloneable * Returns a `Statement` which is a clone of this one * itself * + * Param: + * newParent = the `Container` to re-parent the + * cloned `Statement`'s self to + * * Returns: the cloned `Statement` */ - public Statement clone(); + public Statement clone(Container newParent = null); } \ No newline at end of file