Ejemplo n.º 1
0
        override public object Clone()
        {
            SpliceTypeDefinitionBody clone = (SpliceTypeDefinitionBody)FormatterServices.GetUninitializedObject(typeof(SpliceTypeDefinitionBody));

            clone._lexicalInfo       = _lexicalInfo;
            clone._endSourceLocation = _endSourceLocation;
            clone._documentation     = _documentation;
            clone._isSynthetic       = _isSynthetic;
            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 != _expression)
            {
                clone._expression = _expression.Clone() as Expression;
                clone._expression.InitializeParent(clone);
            }
            return(clone);
        }
Ejemplo n.º 2
0
 public override void OnSpliceTypeDefinitionBody(SpliceTypeDefinitionBody node)
 {
     if (InsideSerializedQuasiquote())
     {
         SerializeSpliceTypeDefinitionBody(node);
         return;
     }
     if (node.ParentNode is EnumDefinition)
     {
         Push(LiftEnumMember(node.Expression));
     }
     else
     {
         Push(LiftTypeMember(node.Expression));
     }
 }
Ejemplo n.º 3
0
		override public object Clone()
		{
		
			SpliceTypeDefinitionBody clone = new SpliceTypeDefinitionBody();
			clone._lexicalInfo = _lexicalInfo;
			clone._endSourceLocation = _endSourceLocation;
			clone._documentation = _documentation;
			clone._isSynthetic = _isSynthetic;
			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 != _expression)
			{
				clone._expression = _expression.Clone() as Expression;
				clone._expression.InitializeParent(clone);
			}
			return clone;


		}