public object Clone() { var av = new AttVal(); if (Next != null) { av.Next = (AttVal)Next.Clone(); } if (Attribute != null) { av.Attribute = Attribute; } if (Val != null) { av.Val = Val; } av.Delim = Delim; if (Asp != null) { av.Asp = (Node)Asp.Clone(); } if (Php != null) { av.Php = (Node)Php.Clone(); } av.Dict = AttributeTable.DefaultAttributeTable.FindAttribute(this); return(av); }
public override LanguageElement Clone() => new NameCheckElement(SourcePosition) { Predicate = (Predicate)Predicate?.Clone(), Next = (PathElement)Next?.Clone(), Name = Name };
public override LanguageElement Clone(Func <LanguageElement, LanguageElement> modifier) => modifier( new NameCheckElement(SourcePosition) { Predicate = (Predicate)Predicate?.Clone(modifier), Next = (PathElement)Next?.Clone(modifier), Name = Name } );
/// Recursivley make a clone of this item /// </summary> /// <returns>New cloned instance</returns> public override SMPath Clone() { SMPathSegment newPathOut = base.Clone() as SMPathSegment; newPathOut._gridDistance = _gridDistance; if (Next != null) { newPathOut._nextSegement = Next.Clone() as SMPathSegment; } return(newPathOut); }
public LinkedListNode Clone() { LinkedListNode next2 = null; if (Next != null) { next2 = Next.Clone(); } LinkedListNode head2 = new LinkedListNode(Data, next2, null); return(head2); }
public override ProcessingElement Clone(ProcessingElement previous) { var np = new Splitter { Carrier = Carrier, ConcreteObject = ConcreteObject, ErrorProcessorMethod = ErrorProcessorMethod, IsAsync = IsAsync, Method = Method, Name = Name, Previous = previous }; np.Next = Next?.Clone(np); return(np); }
public virtual ProcessingElement Clone(ProcessingElement previous) { var cloned = new ProcessingElement { Name = Name, IsAsync = IsAsync, ErrorProcessorMethod = ErrorProcessorMethod, Carrier = Carrier, ConcreteObject = ConcreteObject, Method = ErrorProcessorMethod, Previous = previous }; cloned.Next = Next?.Clone(cloned); return(cloned); }
public object Clone() => new LinkedListNode <T>(Value, (LinkedListNode <T>)Next?.Clone());
public override LanguageElement Clone(Func <LanguageElement, LanguageElement> modifier) => modifier(new DescendantsPathElement(SourcePosition) { Next = (PathElement)Next?.Clone(modifier) });
public override LanguageElement Clone() => new DescendantsPathElement(SourcePosition) { Next = (PathElement)Next?.Clone() };