Skip to content

Commit

Permalink
chore: fix warnings throughout the project
Browse files Browse the repository at this point in the history
  • Loading branch information
LSViana committed Jun 6, 2024
1 parent d3e35ce commit 93ff21b
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion YDotNet/Document/Types/Branches/Branch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public Transaction ReadTransaction()
/// </summary>
/// <param name="transaction">The transaction used to acquire the handle to the <see cref="Branch" />.</param>
/// <returns>The handle to the <see cref="Branch" />.</returns>
/// <exception cref="ObjectDisposedException">If <see cref="Branch.IsDisposed" /> is <c>true</c>.</exception>
/// <exception cref="ObjectDisposedException">If <see cref="Resource.IsDisposed" /> is <c>true</c>.</exception>
protected internal nint GetHandle(Transaction transaction)
{
if (IsDisposed)
Expand Down
1 change: 1 addition & 0 deletions YDotNet/Document/Types/Events/EventPath.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Collections.ObjectModel;
using YDotNet.Infrastructure;
using YDotNet.Native.Types;
using YDotNet.Native.Types.Events;

namespace YDotNet.Document.Types.Events;

Expand Down
8 changes: 6 additions & 2 deletions YDotNet/Document/Types/Events/EventPathSegment.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using YDotNet.Native.Types.Events;

namespace YDotNet.Document.Types.Events;

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

/// <summary>
/// Gets the <see cref="string" /> key, if <see cref="Tag" /> is <see cref="EventPathSegmentTag.Key" />, or <c>null</c> otherwise.
/// Gets the <see cref="string" /> key, if <see cref="Tag" /> is <see cref="EventPathSegmentTag.Key" />, or <c>null</c>
/// otherwise.
/// </summary>
public string? Key { get; }

/// <summary>
/// Gets the <see ref="uint" /> index, if <see cref="Tag" /> is <see cref="EventPathSegmentTag.Index" />, or <c>null</c> otherwise.
/// Gets the <see ref="uint" /> index, if <see cref="Tag" /> is <see cref="EventPathSegmentTag.Index" />, or
/// <c>null</c> otherwise.
/// </summary>
public uint? Index { get; }
}
3 changes: 3 additions & 0 deletions YDotNet/Native/Document/State/IdRangeNative.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
using System.Runtime.InteropServices;

namespace YDotNet.Native.Document.State;

[StructLayout(LayoutKind.Sequential)]
internal readonly struct IdRangeNative
{
public uint Start { get; }
Expand Down
2 changes: 2 additions & 0 deletions YDotNet/Native/Document/State/StateVectorNative.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using System.Runtime.InteropServices;
using YDotNet.Infrastructure;

namespace YDotNet.Native.Document.State;

[StructLayout(LayoutKind.Sequential)]
internal readonly struct StateVectorNative
{
public uint EntriesCount { get; }
Expand Down
3 changes: 3 additions & 0 deletions YDotNet/Native/NativeWithHandle.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System.Runtime.InteropServices;

namespace YDotNet.Native;

[StructLayout(LayoutKind.Sequential)]
internal record struct NativeWithHandle<T>(T Value, nint Handle)
where T : struct;
2 changes: 2 additions & 0 deletions YDotNet/Native/Types/Events/EventPathSegmentNative.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using System.Runtime.InteropServices;
using YDotNet.Infrastructure;

namespace YDotNet.Native.Types.Events;

[StructLayout(LayoutKind.Explicit)]
internal readonly struct EventPathSegmentNative
{
Expand Down

0 comments on commit 93ff21b

Please sign in to comment.