From e9dd6de44d3919363f731ba9b509960a67863dc3 Mon Sep 17 00:00:00 2001 From: Karan Batavia Date: Sat, 23 Mar 2024 15:22:16 +0530 Subject: [PATCH] remove `AttributeLists` from ignore, and add `Attribute` to allowed --- DotNetAstGen/SyntaxNodePropertiesResolver.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DotNetAstGen/SyntaxNodePropertiesResolver.cs b/DotNetAstGen/SyntaxNodePropertiesResolver.cs index f1a385d..ffc0c47 100644 --- a/DotNetAstGen/SyntaxNodePropertiesResolver.cs +++ b/DotNetAstGen/SyntaxNodePropertiesResolver.cs @@ -19,7 +19,7 @@ internal class SyntaxNodePropertiesResolver : DefaultContractResolver "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", "Contents" + "WhenFalse", "Initializers", "NameEquals", "Contents", "Attributes" }); private readonly List _regexToAllow = new(new[] @@ -29,7 +29,7 @@ internal class SyntaxNodePropertiesResolver : DefaultContractResolver private readonly List _regexToIgnore = new(new[] { - ".*(Semicolon|Brace|Bracket|EndOfFile|Paren|Dot)Token$", "AttributeLists", + ".*(Semicolon|Brace|Bracket|EndOfFile|Paren|Dot)Token$", "(Unsafe|Global|Static|Using)Keyword" });