override public object Clone()
        {
            TypeMemberStatement clone = new TypeMemberStatement();

            clone._lexicalInfo       = _lexicalInfo;
            clone._endSourceLocation = _endSourceLocation;
            clone._documentation     = _documentation;
            clone._isSynthetic       = _isSynthetic;
            clone._entity            = _entity;
            if (_annotations != null)
            {
                clone._annotations = (Hashtable)_annotations.Clone();
            }
            if (null != _modifier)
            {
                clone._modifier = _modifier.Clone() as StatementModifier;
                clone._modifier.InitializeParent(clone);
            }
            if (null != _typeMember)
            {
                clone._typeMember = _typeMember.Clone() as TypeMember;
                clone._typeMember.InitializeParent(clone);
            }
            return(clone);
        }
Esempio n. 2
0
        override public object Clone()
        {
            SpliceTypeMember clone = (SpliceTypeMember)FormatterServices.GetUninitializedObject(typeof(SpliceTypeMember));

            clone._lexicalInfo       = _lexicalInfo;
            clone._endSourceLocation = _endSourceLocation;
            clone._documentation     = _documentation;
            clone._entity            = _entity;
            if (_annotations != null)
            {
                clone._annotations = (Hashtable)_annotations.Clone();
            }

            clone._modifiers = _modifiers;
            clone._name      = _name;
            if (null != _attributes)
            {
                clone._attributes = _attributes.Clone() as AttributeCollection;
                clone._attributes.InitializeParent(clone);
            }
            if (null != _typeMember)
            {
                clone._typeMember = _typeMember.Clone() as TypeMember;
                clone._typeMember.InitializeParent(clone);
            }
            if (null != _nameExpression)
            {
                clone._nameExpression = _nameExpression.Clone() as Expression;
                clone._nameExpression.InitializeParent(clone);
            }
            return(clone);
        }
Esempio n. 3
0
        override public object Clone()
        {
            TypeMemberStatement clone = (TypeMemberStatement)FormatterServices.GetUninitializedObject(typeof(TypeMemberStatement));

            clone._lexicalInfo       = _lexicalInfo;
            clone._endSourceLocation = _endSourceLocation;
            clone._documentation     = _documentation;
            clone._entity            = _entity;
            if (_annotations != null)
            {
                clone._annotations = (Hashtable)_annotations.Clone();
            }

            if (null != _modifier)
            {
                clone._modifier = _modifier.Clone() as StatementModifier;
                clone._modifier.InitializeParent(clone);
            }
            if (null != _typeMember)
            {
                clone._typeMember = _typeMember.Clone() as TypeMember;
                clone._typeMember.InitializeParent(clone);
            }
            return(clone);
        }