示例#1
0
        /// <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())
 {
 }
示例#3
0
 /// <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)
 {
 }
示例#4
0
 /// <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)
 {
 }