Struct TextChangeRange
Assembly: Microsoft.CodeAnalysis.dll
Syntax
public readonly struct TextChangeRange : IEquatable<TextChangeRange>
Constructors
TextChangeRange(TextSpan, int)
Declaration
public TextChangeRange(TextSpan span, int newLength)
Parameters
Properties
NewLength
Declaration
public int NewLength { get; }
Property Value
NoChanges
Declaration
public static IReadOnlyList<TextChangeRange> NoChanges { get; }
Property Value
Span
Declaration
public TextSpan Span { get; }
Property Value
Methods
Collapse(IEnumerable<TextChangeRange>)
Declaration
public static TextChangeRange Collapse(IEnumerable<TextChangeRange> changes)
Parameters
Returns
Equals(TextChangeRange)
Declaration
public bool Equals(TextChangeRange other)
Parameters
Returns
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(TextChangeRange, TextChangeRange)
Declaration
public static bool operator ==(TextChangeRange left, TextChangeRange right)
Parameters
Returns
operator !=(TextChangeRange, TextChangeRange)
Declaration
public static bool operator !=(TextChangeRange left, TextChangeRange right)
Parameters
Returns
Implements