From 3c7ac4ecdcfdc9610e23a473c59ef884c50c6e06 Mon Sep 17 00:00:00 2001 From: Karan Batavia Date: Thu, 14 Mar 2024 13:46:31 +0530 Subject: [PATCH] allow `Contents` property --- DotNetAstGen/SyntaxNodePropertiesResolver.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DotNetAstGen/SyntaxNodePropertiesResolver.cs b/DotNetAstGen/SyntaxNodePropertiesResolver.cs index fb5aef1..f1a385d 100644 --- a/DotNetAstGen/SyntaxNodePropertiesResolver.cs +++ b/DotNetAstGen/SyntaxNodePropertiesResolver.cs @@ -18,7 +18,8 @@ internal class SyntaxNodePropertiesResolver : DefaultContractResolver "Condition", "Statement", "Statements", "Variables", "WhenNotNull", "AllowsAnyExpression", "Expressions", "Modifiers", "ReturnType", "IsUnboundGenericName", "Default", "IsConst", "Types", "ExplicitInterfaceSpecifier", "MetaData", "Kind", "AstRoot", "FileName", "Code", "Operand", "Block", - "Catches", "Finally", "Keyword", "Incrementors", "Sections", "Pattern", "Labels", "Elements" ,"WhenTrue", "WhenFalse", "Initializers", "NameEquals" + "Catches", "Finally", "Keyword", "Incrementors", "Sections", "Pattern", "Labels", "Elements" ,"WhenTrue", + "WhenFalse", "Initializers", "NameEquals", "Contents" }); private readonly List _regexToAllow = new(new[]