Struct LinePositionSpan
Immutable span represented by a pair of line number and index within the line.
Assembly: Loretta.CodeAnalysis.dll
Syntax
[DataContract]
public readonly struct LinePositionSpan
Constructors
|
Improve this Doc
View Source
LinePositionSpan(LinePosition, LinePosition)
Declaration
public LinePositionSpan(LinePosition start, LinePosition end)
Parameters
Properties
|
Improve this Doc
View Source
End
Gets the end position of the span.
Declaration
public readonly LinePosition End { get; }
Property Value
|
Improve this Doc
View Source
Start
Gets the start position of the span.
Declaration
public readonly LinePosition Start { get; }
Property Value
Methods
|
Improve this Doc
View Source
Equals(LinePositionSpan)
Declaration
public readonly bool Equals(LinePositionSpan other)
Parameters
Returns
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override readonly bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Overrides
|
Improve this Doc
View Source
ToString()
Declaration
public override readonly string ToString()
Returns
Overrides
Examples
(0,0)-(5,6)
Operators
|
Improve this Doc
View Source
Equality(LinePositionSpan, LinePositionSpan)
Checks whether two line position spans are equal.
Declaration
public static bool operator ==(LinePositionSpan left, LinePositionSpan right)
Parameters
Returns
|
Improve this Doc
View Source
Inequality(LinePositionSpan, LinePositionSpan)
Checks whether two line position spans are not equal.
Declaration
public static bool operator !=(LinePositionSpan left, LinePositionSpan right)
Parameters
Returns
Implements
IEquatable<>