private static ImmutableArray <TextChangeRange> Merge(IReadOnlyList <ImmutableArray <TextChangeRange> > changeSets) { RoslynDebug.Assert(changeSets.Count > 1); var merged = changeSets[0]; for (int i = 1; i < changeSets.Count; i++) { merged = TextChangeRangeExtensions.Merge(merged, changeSets[i]); } return(merged); }
public static ImmutableArray <TextChangeRange> Merge(ImmutableArray <TextChangeRange> oldChanges, ImmutableArray <TextChangeRange> newChanges) => TextChangeRangeExtensions.Merge(oldChanges, newChanges);