Skip to content

Commit

Permalink
Revert "Remove use of bitshifts to make documentation generate correc…
Browse files Browse the repository at this point in the history
…tly"

This reverts commit bae9a61.
  • Loading branch information
Emik03 committed Nov 21, 2024
1 parent bae9a61 commit 95e2c15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace wawa.Modules;
/// The number of constant characters outside of interpolation expressions in the interpolated string.
/// </param>
/// <param name="formattedCount">The number of interpolation expressions in the interpolated string.</param>
[InterpolatedStringHandler, PublicAPI]
[InterpolatedStringHandler]
public readonly struct InterpolatedStringHandlerEnumerable(
[NonNegativeValue] int literalLength,
[NonNegativeValue] int formattedCount
Expand All @@ -25,32 +25,30 @@ [NonNegativeValue] int formattedCount
/// </para></remarks>
public int RecommendedLength
{
[NonNegativeValue, PublicAPI, Pure]
[NonNegativeValue, Pure]
get => literalLength + formattedCount * 11;
}

/// <summary>Writes the specified value to the handler.</summary>
/// <param name="value">The value to write.</param>
/// <param name="format">The format string.</param>
[PublicAPI]
public void AppendFormatted([AllowNull, CanBeNull] object value, [AllowNull, CanBeNull] string format = null) =>
_list.Add(new(value, format));

/// <summary>Writes the specified string to the handler.</summary>
/// <param name="value">The string to write.</param>
[PublicAPI]
public void AppendLiteral([AllowNull, CanBeNull] string value) => _list.Add(new(value, null));

/// <inheritdoc cref="IEnumerable{T}.GetEnumerator"/>
[PublicAPI, Pure]
[Pure]
List<KeyValuePair<object, string>>.Enumerator GetEnumerator() => _list.GetEnumerator();

/// <inheritdoc />
[PublicAPI, Pure]
[Pure]
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();

/// <inheritdoc />
[PublicAPI, Pure]
[Pure]
IEnumerator<KeyValuePair<object, string>> IEnumerable<KeyValuePair<object, string>>.GetEnumerator() =>
GetEnumerator();
}
2 changes: 1 addition & 1 deletion wawa.Recall/Source/Abstractions/Domains/StatusLights.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ public enum StatusLights : byte

/// <summary>The status light that is red, representing the strike state.</summary>
[PublicAPI]
Strike = 4,
Strike = 1 << 2,
}

0 comments on commit 95e2c15

Please sign in to comment.