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)
148Start = new Position 153End = new Position
Handler\CodeActions\CodeActionResolveHelper.cs (2)
248var 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)
270public static int CompareTo(this Position p1, Position p2)
Extensions\ProtocolConversions.cs (3)
292public static LinePosition PositionToLinePosition(LSP.Position position) 323static string PositionToString(LSP.Position position) 343public static LSP.Position LinePositionToPosition(LinePosition linePosition)
Protocol\DocumentOnTypeFormattingParams.cs (1)
31public Position Position { get; set; }
Protocol\InlayHint.cs (1)
27public Position Position
Protocol\Internal\VSInternalDocumentOnAutoInsertParams.cs (1)
28public Position Position
Protocol\Internal\VSInternalInlineCompletionRequest.cs (1)
28public Position Position { get; set; }
Protocol\Internal\VSInternalRelatedDocumentParams.cs (1)
27public Position? Position { get; set; }
Protocol\ITextDocumentPositionParams.cs (1)
23public 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)
15internal 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. 61public static bool operator ==(Position? firstPosition, Position? secondPosition) 87public static bool operator !=(Position? firstPosition, Position? secondPosition) 99return this.Equals(obj as Position); 103public bool Equals(Position? other)
Protocol\PrepareRenameParams.cs (1)
29public Position Position { get; set; }
Protocol\Range.cs (6)
23public Position Start 34public Position End 71EqualityComparer<Position>.Default.Equals(this.Start, other.Start) && 72EqualityComparer<Position>.Default.Equals(this.End, other.End); 79hashCode = (hashCode * -1521134295) + EqualityComparer<Position>.Default.GetHashCode(this.Start); 80hashCode = (hashCode * -1521134295) + EqualityComparer<Position>.Default.GetHashCode(this.End);
Protocol\SelectionRangeParams.cs (1)
31public Position[] Positions { get; init; }
Protocol\TextDocumentPositionParams.cs (1)
30public Position Position