Files
PURErat-crack-scode/decompiled/Libraries/microsoft.codeanalysis/Microsoft.CodeAnalysis.Text/TextChangeEventArgs.cs
T
2026-08-27 10:56:38 -06:00

31 lines
752 B
C#

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
namespace Microsoft.CodeAnalysis.Text;
public class TextChangeEventArgs : EventArgs
{
public SourceText OldText { get; }
public SourceText NewText { get; }
public IReadOnlyList<TextChangeRange> Changes { get; }
public TextChangeEventArgs(SourceText oldText, SourceText newText, IEnumerable<TextChangeRange> changes)
{
if (changes == null)
{
throw new ArgumentNullException("changes");
}
OldText = oldText;
NewText = newText;
Changes = changes.ToImmutableArray();
}
public TextChangeEventArgs(SourceText oldText, SourceText newText, params TextChangeRange[] changes)
: this(oldText, newText, (IEnumerable<TextChangeRange>)changes)
{
}
}