Exemplo n.º 1
0
 override public bool Replace(Node existing, Node newNode)
 {
     if (base.Replace(existing, newNode))
     {
         return(true);
     }
     if (_orderings != null)
     {
         OrderingExpression item = existing as OrderingExpression;
         if (null != item)
         {
             OrderingExpression newItem = (OrderingExpression)newNode;
             if (_orderings.Replace(item, newItem))
             {
                 return(true);
             }
         }
     }
     return(false);
 }
Exemplo n.º 2
0
        override public object Clone()
        {
            OrderingExpression clone = new OrderingExpression();

            clone._lexicalInfo       = _lexicalInfo;
            clone._endSourceLocation = _endSourceLocation;
            clone._documentation     = _documentation;
            clone._isSynthetic       = _isSynthetic;
            clone._entity            = _entity;
            if (_annotations != null)
            {
                clone._annotations = (Hashtable)_annotations.Clone();
            }
            clone._expressionType = _expressionType;
            clone._descending     = _descending;
            if (null != _baseExpr)
            {
                clone._baseExpr = _baseExpr.Clone() as Expression;
                clone._baseExpr.InitializeParent(clone);
            }
            return(clone);
        }