diff --git a/source/Handlebars/Compiler/ClosureBuilder.cs b/source/Handlebars/Compiler/ClosureBuilder.cs index 808258bc..9af4f4c9 100644 --- a/source/Handlebars/Compiler/ClosureBuilder.cs +++ b/source/Handlebars/Compiler/ClosureBuilder.cs @@ -160,7 +160,7 @@ public sealed class Closure public readonly ChainSegment[]? BP0; public readonly ChainSegment[][]? BPA; - public readonly object?[] A; + public readonly object?[] A; // NOSONAR: public since 2020; reflection-based codegen in this file needs public GetField lookup internal Closure( List> pathInfos, diff --git a/source/Handlebars/PathStructure/PathInfo.cs b/source/Handlebars/PathStructure/PathInfo.cs index 57b6b90e..e5b97c40 100644 --- a/source/Handlebars/PathStructure/PathInfo.cs +++ b/source/Handlebars/PathStructure/PathInfo.cs @@ -105,7 +105,7 @@ private PathInfo( /// // [MemberNotNullWhen(true, nameof(Segments), nameof(TrimmedPath))] public readonly bool IsVariable; - public readonly PathSegment[]? Segments; + public readonly PathSegment[]? Segments; // NOSONAR: public since v1.0 (2020); staying public avoids a breaking API change public readonly string Path; public readonly string? TrimmedPath;