@@ -822,16 +822,16 @@ namespace GraphQLParser.Visitors
822
822
public class DefaultCountContext : GraphQLParser.Visitors.IASTVisitorContext, GraphQLParser.Visitors.ICountContext
823
823
{
824
824
public DefaultCountContext(System.Func<GraphQLParser.AST.ASTNode, bool> shouldInclude) { }
825
- public System.Threading.CancellationToken CancellationToken { get; set; }
826
825
public int Count { get; set; }
827
826
public System.Func<GraphQLParser.AST.ASTNode, bool> ShouldInclude { get; }
827
+ public System.Threading.CancellationToken CancellationToken { get; init; }
828
828
}
829
829
public class DefaultMaxDepthContext : GraphQLParser.Visitors.IASTVisitorContext, GraphQLParser.Visitors.IMaxDepthContext
830
830
{
831
831
public DefaultMaxDepthContext() { }
832
- public System.Threading.CancellationToken CancellationToken { get; set; }
833
832
public int MaxDepth { get; set; }
834
- public System.Collections.Generic.Stack<GraphQLParser.AST.ASTNode> Parents { get; set; }
833
+ public System.Threading.CancellationToken CancellationToken { get; init; }
834
+ public System.Collections.Generic.Stack<GraphQLParser.AST.ASTNode> Parents { get; init; }
835
835
}
836
836
public interface IASTVisitorContext
837
837
{
@@ -877,11 +877,11 @@ namespace GraphQLParser.Visitors
877
877
public class DefaultPrintContext : GraphQLParser.Visitors.IASTVisitorContext, GraphQLParser.Visitors.IPrintContext
878
878
{
879
879
public DefaultPrintContext(System.IO.TextWriter writer) { }
880
- public System.Threading.CancellationToken CancellationToken { get; set; }
881
880
public int IndentLevel { get; set; }
882
881
public bool LastDefinitionPrinted { get; set; }
883
- public System.Collections.Generic.Stack<GraphQLParser.AST.ASTNode> Parents { get; set; }
884
882
public System.IO.TextWriter Writer { get; }
883
+ public System.Threading.CancellationToken CancellationToken { get; init; }
884
+ public System.Collections.Generic.Stack<GraphQLParser.AST.ASTNode> Parents { get; init; }
885
885
}
886
886
}
887
887
public static class SDLPrinterExtensions
@@ -893,9 +893,9 @@ namespace GraphQLParser.Visitors
893
893
public class SDLPrinterOptions
894
894
{
895
895
public SDLPrinterOptions() { }
896
- public bool EachDirectiveLocationOnNewLine { get; set ; }
897
- public bool EachUnionMemberOnNewLine { get; set ; }
898
- public bool PrintComments { get; set ; }
896
+ public bool EachDirectiveLocationOnNewLine { get; init ; }
897
+ public bool EachUnionMemberOnNewLine { get; init ; }
898
+ public bool PrintComments { get; init ; }
899
899
}
900
900
public class SDLPrinter<TContext> : GraphQLParser.Visitors.ASTVisitor<TContext>
901
901
where TContext : GraphQLParser.Visitors.IPrintContext
@@ -972,8 +972,8 @@ namespace GraphQLParser.Visitors
972
972
public class StructurePrinterOptions
973
973
{
974
974
public StructurePrinterOptions() { }
975
- public bool PrintLocations { get; set ; }
976
- public bool PrintNames { get; set ; }
975
+ public bool PrintLocations { get; init ; }
976
+ public bool PrintNames { get; init ; }
977
977
}
978
978
public class StructurePrinter<TContext> : GraphQLParser.Visitors.ASTVisitor<TContext>
979
979
where TContext : GraphQLParser.Visitors.IPrintContext
0 commit comments