module volta.util.copy

Code Map

module volta.util.copy;


fn copy(old: ir.AccessExp) ir.AccessExp { }
fn copy(cnst: ir.Constant) ir.Constant { }
fn copy(bs: ir.BlockStatement) ir.BlockStatement { }
fn copy(rs: ir.ReturnStatement) ir.ReturnStatement { }
fn copy(bo: ir.BinOp) ir.BinOp { }
fn copy(ie: ir.IdentifierExp) ir.IdentifierExp { }
fn copy(te: ir.TokenExp) ir.TokenExp { }
fn copy(te: ir.TypeExp) ir.TypeExp { }
fn copy(se: ir.StoreExp) ir.StoreExp { }
fn copy(ar: ir.ArrayLiteral) ir.ArrayLiteral { }
fn copy(er: ir.ExpReference) ir.ExpReference { }
fn copy(ident: ir.Identifier) ir.Identifier { }
fn copy(pfix: ir.Postfix) ir.Postfix { }
fn copy(unary: ir.Unary) ir.Unary { }
fn copy(old: ir.PropertyExp) ir.PropertyExp { }
fn copy(old: ir.PrimitiveType) ir.PrimitiveType { }
fn copy(old: ir.PointerType) ir.PointerType { }
fn copy(old: ir.ArrayType) ir.ArrayType { }
fn copy(old: ir.StaticArrayType) ir.StaticArrayType { }
fn copy(old: ir.AAType) ir.AAType { }
fn copy(old: ir.FunctionType) ir.FunctionType { }
fn copy(old: ir.DelegateType) ir.DelegateType { }
fn copy(old: ir.StorageType) ir.StorageType { }
fn copy(old: ir.TypeReference) ir.TypeReference { }
fn copy(old: ir.NullType) ir.NullType { }
fn copy(old: ir.Typeid) ir.Typeid { }
fn copy(old: ir.AutoType) ir.AutoType { }
fn copy(old: ir.BuiltinExp) ir.BuiltinExp { }
fn copy(old: ir.RunExp) ir.RunExp { }
fn copy(old: ir.ComposableString) ir.ComposableString { }
fn copy(old: ir.StatementExp) ir.StatementExp { }
fn copy(old: ir.Ternary) ir.Ternary { }
fn copy(old: ir.QualifiedName) ir.QualifiedName { }
//! Helper function that takes care of up casting the return from copyDeep.
fn copyType(t: ir.Type) ir.Type { }
//! Helper function that takes care of up casting the return from copyDeep.
fn copyExp(exp: ir.Exp) ir.Exp { }
fn copyExp(loc: const(Location), exp: ir.Exp) ir.Exp { }
//! Copies a node and all its children nodes.
fn copyNode(n: ir.Node) ir.Node { }
fn copyType(t: ir.Type) ir.Type

Helper function that takes care of up casting the return from copyDeep.

fn copyExp(exp: ir.Exp) ir.Exp

Helper function that takes care of up casting the return from copyDeep.

fn copyNode(n: ir.Node) ir.Node

Copies a node and all its children nodes.