示例#1
0
        /// <summary>
        /// Gets a list of text changes that when applied to the old tree produce this tree.
        /// </summary>
        /// <param name="oldTree">The old tree. Cannot be <c>null</c>.</param>
        /// <remarks>The list of changes may be different than the original changes that produced this tree.</remarks>
        public override IList <TextChange> GetChanges(SyntaxTree oldTree)
        {
            if (oldTree == null)
            {
                throw new ArgumentNullException("oldTree");
            }

            return(SyntaxDiffer.GetTextChanges(oldTree, this));
        }
 /// <summary>
 /// Gets a list of text changes that when applied to the old tree produce this tree.
 /// </summary>
 /// <param name="oldTree">The old tree.</param>
 /// <remarks>The list of changes may be different than the original changes that produced this tree.</remarks>
 public override IList <TextChange> GetChanges(SyntaxTree oldTree)
 {
     return(SyntaxDiffer.GetTextChanges(oldTree, this));
 }