Inheritance: ISarifNode
        public virtual Replacement VisitReplacement(Replacement node)
        {
            if (node != null)
            {
            }

            return(node);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Replacement" /> class from the specified instance.
        /// </summary>
        /// <param name="other">
        /// The instance from which the new instance is to be initialized.
        /// </param>
        /// <exception cref="ArgumentNullException">
        /// Thrown if <paramref name="other" /> is null.
        /// </exception>
        public Replacement(Replacement other)
        {
            if (other == null)
            {
                throw new ArgumentNullException(nameof(other));
            }

            Init(other.DeletedRegion, other.InsertedContent, other.Properties);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Replacement" /> class from the specified instance.
        /// </summary>
        /// <param name="other">
        /// The instance from which the new instance is to be initialized.
        /// </param>
        /// <exception cref="ArgumentNullException">
        /// Thrown if <paramref name="other" /> is null.
        /// </exception>
        public Replacement(Replacement other)
        {
            if (other == null)
            {
                throw new ArgumentNullException(nameof(other));
            }

            Init(other.Offset, other.DeletedLength, other.InsertedBytes);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Replacement" /> class from the specified instance.
        /// </summary>
        /// <param name="other">
        /// The instance from which the new instance is to be initialized.
        /// </param>
        /// <exception cref="ArgumentNullException">
        /// Thrown if <paramref name="other" /> is null.
        /// </exception>
        public Replacement(Replacement other)
        {
            if (other == null)
            {
                throw new ArgumentNullException(nameof(other));
            }

            Init(other.Offset, other.DeletedLength, other.InsertedBytes);
        }
Ejemplo n.º 5
0
        public virtual Replacement VisitReplacement(Replacement node)
        {
            if (node != null)
            {
                node.DeletedRegion   = VisitNullChecked(node.DeletedRegion);
                node.InsertedContent = VisitNullChecked(node.InsertedContent);
            }

            return(node);
        }
Ejemplo n.º 6
0
 public bool ValueEquals(Replacement other) => ValueComparer.Equals(this, other);
Ejemplo n.º 7
0
 public bool ValueEquals(Replacement other) => ValueComparer.Equals(this, other);