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);
        }
Example #2
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);
        }
Example #3
0
		public static TypeMember Lift(TypeMemberStatement stmt)
		{
			return stmt.TypeMember;
		}
Example #4
0
 public static TypeMember Lift(TypeMemberStatement stmt)
 {
     return(stmt.TypeMember);
 }
Example #5
0
		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;


		}