/// <summary> /// Produces a pessimistic list of spans that denote the regions of text in this tree that /// are changed from the text of the old tree. /// </summary> /// <param name="oldTree">The old tree. Cannot be <c>null</c>.</param> /// <remarks>The list is pessimistic because it may claim more or larger regions than actually changed.</remarks> public override IList <TextSpan> GetChangedSpans(SyntaxTree oldTree) { if (oldTree == null) { throw new ArgumentNullException("oldTree"); } return(SyntaxDiffer.GetPossiblyDifferentTextSpans(oldTree, this)); }
/// <summary> /// Produces a pessimistic list of spans that denote the regions of text in this tree that /// are changed from the text of the old tree. /// </summary> /// <param name="oldTree">The old tree.</param> /// <remarks>The list is pessimistic because it may claim more or larger regions than actually changed.</remarks> public override IList <TextSpan> GetChangedSpans(SyntaxTree oldTree) { return(SyntaxDiffer.GetPossiblyDifferentTextSpans(oldTree, this)); }