Skip to content

Commit

Permalink
Enable Try-Catch-Finally Properties
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBakerEffendi committed Jan 16, 2024
1 parent e0d4f65 commit 16bf909
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DotNetAstGen/SyntaxNodePropertiesResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ internal class SyntaxNodePropertiesResolver : DefaultContractResolver
"Alias", "NamespaceOrType", "Arguments", "Expression", "Declaration", "ElementType", "Initializer", "Else",
"Condition", "Statement", "Statements", "Variables", "WhenNotNull", "AllowsAnyExpression", "Expressions",
"Modifiers", "ReturnType", "IsUnboundGenericName", "Default", "IsConst", "Parameters", "Types",
"ExplicitInterfaceSpecifier", "MetaData", "Kind", "AstRoot", "FileName", "Code", "Operand"
"ExplicitInterfaceSpecifier", "MetaData", "Kind", "AstRoot", "FileName", "Code", "Operand", "Block",
"Catches", "Finally"
});

private readonly List<string> _regexToAllow = new(new[]
{
".*Token$", ".*Keyword$", ".*Lists?$", ".*Body$", "(Line|Column)(Start|End)", ".*Type$",
".*Token$", ".*Lists?$", ".*Body$", "(Line|Column)(Start|End)", ".*Type$",
});

private readonly List<string> _regexToIgnore = new(new[]
Expand Down

0 comments on commit 16bf909

Please sign in to comment.