Sealed + ref struct

This commit is contained in:
Miha Zupan
2025-04-14 22:11:53 +02:00
parent 0d6343b421
commit bbefce3b1f
3 changed files with 3 additions and 3 deletions

View File

@@ -127,7 +127,7 @@ public sealed class MarkdownPipeline
}
}
internal readonly struct RentedHtmlRenderer : IDisposable
internal readonly ref struct RentedHtmlRenderer : IDisposable
{
private readonly HtmlRendererCache _cache;
public readonly HtmlRenderer Instance;

View File

@@ -153,7 +153,7 @@ public abstract class MarkdownObject : IMarkdownObject
return Unsafe.As<T>(storage.Trivia);
}
private class DataEntriesAndTrivia
private sealed class DataEntriesAndTrivia
{
private struct DataEntry(object key, object value)
{

View File

@@ -25,7 +25,7 @@ public class QuoteBlock : ContainerBlock
/// <summary>
/// Gets or sets the trivia per line of this QuoteBlock.
/// Trivia: only parsed when <see cref="MarkdownPipeline.TrackTrivia"/> is enabled, otherwise null.
/// Trivia: only parsed when <see cref="MarkdownPipeline.TrackTrivia"/> is enabled.
/// </summary>
public List<QuoteBlockLine> QuoteLines => Trivia;