From c003ee8676e3256d6a25bd7a486abc260ef6c8e4 Mon Sep 17 00:00:00 2001 From: Alexander Jesner Date: Sat, 19 Oct 2024 21:22:30 +0200 Subject: [PATCH] Chore: seal internal classes --- src/GraphQLParser/AST/GraphQLComment.cs | 2 +- src/GraphQLParser/Visitors/SDLPrinter.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GraphQLParser/AST/GraphQLComment.cs b/src/GraphQLParser/AST/GraphQLComment.cs index e58572cf..b53469d8 100644 --- a/src/GraphQLParser/AST/GraphQLComment.cs +++ b/src/GraphQLParser/AST/GraphQLComment.cs @@ -25,7 +25,7 @@ public GraphQLComment(ROM value) public ROM Value { get; internal set; } } -internal class GraphQLCommentWithLocation : GraphQLComment +internal sealed class GraphQLCommentWithLocation : GraphQLComment { public override GraphQLLocation Location { get; set; } diff --git a/src/GraphQLParser/Visitors/SDLPrinter.cs b/src/GraphQLParser/Visitors/SDLPrinter.cs index 0b8b46c7..62749916 100644 --- a/src/GraphQLParser/Visitors/SDLPrinter.cs +++ b/src/GraphQLParser/Visitors/SDLPrinter.cs @@ -1217,7 +1217,7 @@ public class SDLPrinterOptions /// for indentation purposes. Any literal printed first after optional comment or description nodes in /// any VisitXXX method should be wrapped into for proper indentation. /// -internal class LiteralNode : ASTNode +internal sealed class LiteralNode : ASTNode { [ThreadStatic] internal static LiteralNode? _shared;