@@ -274,7 +274,7 @@ public interface ILspCurrentFileContext : IFileContext
274
274
ILspFileRange SelectionRange { get ; }
275
275
}
276
276
277
- internal struct OmnisharpLspPosition : ILspFilePosition , IEquatable < OmnisharpLspPosition >
277
+ internal readonly struct OmnisharpLspPosition : ILspFilePosition , IEquatable < OmnisharpLspPosition >
278
278
{
279
279
private readonly Position _position ;
280
280
@@ -287,7 +287,7 @@ internal struct OmnisharpLspPosition : ILspFilePosition, IEquatable<OmnisharpLsp
287
287
public bool Equals ( OmnisharpLspPosition other ) => _position == other . _position ;
288
288
}
289
289
290
- internal struct OmnisharpLspRange : ILspFileRange , IEquatable < OmnisharpLspRange >
290
+ internal readonly struct OmnisharpLspRange : ILspFileRange , IEquatable < OmnisharpLspRange >
291
291
{
292
292
private readonly Range _range ;
293
293
@@ -300,7 +300,7 @@ internal struct OmnisharpLspRange : ILspFileRange, IEquatable<OmnisharpLspRange>
300
300
public bool Equals ( OmnisharpLspRange other ) => _range == other . _range ;
301
301
}
302
302
303
- internal struct BufferFilePosition : IFilePosition , IEquatable < BufferFilePosition >
303
+ internal readonly struct BufferFilePosition : IFilePosition , IEquatable < BufferFilePosition >
304
304
{
305
305
private readonly BufferPosition _position ;
306
306
@@ -317,7 +317,7 @@ public bool Equals(BufferFilePosition other)
317
317
}
318
318
}
319
319
320
- internal struct BufferFileRange : IFileRange , IEquatable < BufferFileRange >
320
+ internal readonly struct BufferFileRange : IFileRange , IEquatable < BufferFileRange >
321
321
{
322
322
private readonly BufferRange _range ;
323
323
0 commit comments