Skip to content

Commit

Permalink
remove AttributeLists from ignore, and add Attribute to allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
karan-batavia committed Mar 23, 2024
1 parent eb369ed commit e9dd6de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DotNetAstGen/SyntaxNodePropertiesResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> _regexToAllow = new(new[]
Expand All @@ -29,7 +29,7 @@ internal class SyntaxNodePropertiesResolver : DefaultContractResolver

private readonly List<string> _regexToIgnore = new(new[]
{
".*(Semicolon|Brace|Bracket|EndOfFile|Paren|Dot)Token$", "AttributeLists",
".*(Semicolon|Brace|Bracket|EndOfFile|Paren|Dot)Token$",
"(Unsafe|Global|Static|Using)Keyword"
});

Expand Down

0 comments on commit e9dd6de

Please sign in to comment.