Containers

- `Struct`'s `MCloenable` API adhered to
This commit is contained in:
Tristan B. Velloza Kildaire 2023-07-17 17:01:10 +02:00
parent b09aa3add0
commit 9b55b3dec4
1 changed files with 5 additions and 1 deletions

View File

@ -252,9 +252,13 @@ public class Struct : Type, Container, MCloneable
* fresh copy of all its members and the struct
* itself.
*
* Param:
* newParent = the `Container` to re-parent the
* cloned `Statement`'s self to
*
* Returns: the cloned `Statement`
*/
public override Statement clone()
public override Statement clone(Container newParent = null)
{
Struct clonedStruct = new Struct(this.name);