5 instantiations of Position
Microsoft.CodeAnalysis.LanguageServer.Protocol (5)
Extensions\ProtocolConversions.cs (1)
344
=> new LSP.
Position
{ Line = linePosition.Line, Character = linePosition.Character };
Extensions\ProtocolConversions.Diagnostics.cs (2)
148
Start = new
Position
153
End = new
Position
Handler\CodeActions\CodeActionResolveHelper.cs (2)
248
var emptyDocumentRange = new LSP.Range { Start = new
Position
{ Line = 0, Character = 0 }, End = new
Position
{ Line = 0, Character = 0 } };
30 references to Position
Microsoft.CodeAnalysis.LanguageServer.Protocol (30)
Extensions\Extensions.cs (2)
270
public static int CompareTo(this
Position
p1,
Position
p2)
Extensions\ProtocolConversions.cs (3)
292
public static LinePosition PositionToLinePosition(LSP.
Position
position)
323
static string PositionToString(LSP.
Position
position)
343
public static LSP.
Position
LinePositionToPosition(LinePosition linePosition)
Protocol\DocumentOnTypeFormattingParams.cs (1)
31
public
Position
Position { get; set; }
Protocol\InlayHint.cs (1)
27
public
Position
Position
Protocol\Internal\VSInternalDocumentOnAutoInsertParams.cs (1)
28
public
Position
Position
Protocol\Internal\VSInternalInlineCompletionRequest.cs (1)
28
public
Position
Position { get; set; }
Protocol\Internal\VSInternalRelatedDocumentParams.cs (1)
27
public
Position
? Position { get; set; }
Protocol\ITextDocumentPositionParams.cs (1)
23
public
Position
Position { get; set; }
Protocol\ParameterInformation.cs (1)
25
/// The offsets are based on a UTF-16 string representation, like <see cref="
Position
"/> and
Protocol\Position.cs (9)
15
internal class Position : IEquatable<
Position
>
18
/// Initializes a new instance of the <see cref="
Position
"/> class.
25
/// Initializes a new instance of the <see cref="
Position
"/> class.
61
public static bool operator ==(
Position
? firstPosition,
Position
? secondPosition)
87
public static bool operator !=(
Position
? firstPosition,
Position
? secondPosition)
99
return this.Equals(obj as
Position
);
103
public bool Equals(
Position
? other)
Protocol\PrepareRenameParams.cs (1)
29
public
Position
Position { get; set; }
Protocol\Range.cs (6)
23
public
Position
Start
34
public
Position
End
71
EqualityComparer<
Position
>.Default.Equals(this.Start, other.Start) &&
72
EqualityComparer<
Position
>.Default.Equals(this.End, other.End);
79
hashCode = (hashCode * -1521134295) + EqualityComparer<
Position
>.Default.GetHashCode(this.Start);
80
hashCode = (hashCode * -1521134295) + EqualityComparer<
Position
>.Default.GetHashCode(this.End);
Protocol\SelectionRangeParams.cs (1)
31
public
Position
[] Positions { get; init; }
Protocol\TextDocumentPositionParams.cs (1)
30
public
Position
Position