You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tlang/source/tlang/compiler/parsing/cloneable.d

17 lines
378 B
D

module tlang.compiler.parsing.cloneable;
import tlang.compiler.symbols.data : Statement;
/**
* A parse-node/AST-node which implements `Cloneable` can
* be safely deeply cloned such that a full copy is returned.
*/
public interface Cloneable
{
/**
* Performs a deep clone of this parse node
*
* Returns: the clone
*/
public Statement clone();
}