Skip to content

Commit 93ff21b

Browse files
committed
chore: fix warnings throughout the project
1 parent d3e35ce commit 93ff21b

File tree

7 files changed

+18
-3
lines changed

7 files changed

+18
-3
lines changed

YDotNet/Document/Types/Branches/Branch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public Transaction ReadTransaction()
8484
/// </summary>
8585
/// <param name="transaction">The transaction used to acquire the handle to the <see cref="Branch" />.</param>
8686
/// <returns>The handle to the <see cref="Branch" />.</returns>
87-
/// <exception cref="ObjectDisposedException">If <see cref="Branch.IsDisposed" /> is <c>true</c>.</exception>
87+
/// <exception cref="ObjectDisposedException">If <see cref="Resource.IsDisposed" /> is <c>true</c>.</exception>
8888
protected internal nint GetHandle(Transaction transaction)
8989
{
9090
if (IsDisposed)

YDotNet/Document/Types/Events/EventPath.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System.Collections.ObjectModel;
22
using YDotNet.Infrastructure;
33
using YDotNet.Native.Types;
4+
using YDotNet.Native.Types.Events;
45

56
namespace YDotNet.Document.Types.Events;
67

YDotNet/Document/Types/Events/EventPathSegment.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
using YDotNet.Native.Types.Events;
2+
13
namespace YDotNet.Document.Types.Events;
24

35
/// <summary>
@@ -27,12 +29,14 @@ internal EventPathSegment(EventPathSegmentNative native)
2729
public EventPathSegmentTag Tag { get; }
2830

2931
/// <summary>
30-
/// Gets the <see cref="string" /> key, if <see cref="Tag" /> is <see cref="EventPathSegmentTag.Key" />, or <c>null</c> otherwise.
32+
/// Gets the <see cref="string" /> key, if <see cref="Tag" /> is <see cref="EventPathSegmentTag.Key" />, or <c>null</c>
33+
/// otherwise.
3134
/// </summary>
3235
public string? Key { get; }
3336

3437
/// <summary>
35-
/// Gets the <see ref="uint" /> index, if <see cref="Tag" /> is <see cref="EventPathSegmentTag.Index" />, or <c>null</c> otherwise.
38+
/// Gets the <see ref="uint" /> index, if <see cref="Tag" /> is <see cref="EventPathSegmentTag.Index" />, or
39+
/// <c>null</c> otherwise.
3640
/// </summary>
3741
public uint? Index { get; }
3842
}

YDotNet/Native/Document/State/IdRangeNative.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
using System.Runtime.InteropServices;
2+
13
namespace YDotNet.Native.Document.State;
24

5+
[StructLayout(LayoutKind.Sequential)]
36
internal readonly struct IdRangeNative
47
{
58
public uint Start { get; }

YDotNet/Native/Document/State/StateVectorNative.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
using System.Runtime.InteropServices;
12
using YDotNet.Infrastructure;
23

34
namespace YDotNet.Native.Document.State;
45

6+
[StructLayout(LayoutKind.Sequential)]
57
internal readonly struct StateVectorNative
68
{
79
public uint EntriesCount { get; }

YDotNet/Native/NativeWithHandle.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
using System.Runtime.InteropServices;
2+
13
namespace YDotNet.Native;
24

5+
[StructLayout(LayoutKind.Sequential)]
36
internal record struct NativeWithHandle<T>(T Value, nint Handle)
47
where T : struct;

YDotNet/Native/Types/Events/EventPathSegmentNative.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
using System.Runtime.InteropServices;
22
using YDotNet.Infrastructure;
33

4+
namespace YDotNet.Native.Types.Events;
5+
46
[StructLayout(LayoutKind.Explicit)]
57
internal readonly struct EventPathSegmentNative
68
{

0 commit comments

Comments
 (0)