/// <summary> /// Deep-clone the code object. /// </summary> public override CodeObject Clone() { VariableDecl clone = (VariableDecl)base.Clone(); clone.CloneField(ref clone._type, _type); clone.CloneField(ref clone._initialization, _initialization); return(clone); }
/// <summary> /// Create a Ref/Out operator instance. /// </summary> protected RefOutOperator(VariableDecl variableDecl) : base(variableDecl.CreateRef()) { }
/// <summary> /// Create an <see cref="Out"/> operator for the specified <see cref="VariableDecl"/>. /// </summary> /// <param name="variableDecl">The <see cref="VariableDecl"/> being passed as a parameter (a reference to it will be created).</param> public Out(VariableDecl variableDecl) : base(variableDecl) { }
/// <summary> /// Create a <see cref="Ref"/> operator for the specified <see cref="VariableDecl"/>. /// </summary> /// <param name="variableDecl">The <see cref="VariableDecl"/> being passed as a parameter (a reference to it will be created).</param> public Ref(VariableDecl variableDecl) : base(variableDecl) { }