Browse Source

Remove unnecessary nodes in MethodTargets

pull/7935/head
Steven He 5 years ago
parent
commit
de771d6fc4
  1. 2
      src/Avalonia.SourceGenerator/SubtypesFactoryGenerator.cs

2
src/Avalonia.SourceGenerator/SubtypesFactoryGenerator.cs

@ -141,7 +141,7 @@ namespace {method.ContainingNamespace}
static (syntaxNode, token) =>
{
token.ThrowIfCancellationRequested();
return syntaxNode is ClassDeclarationSyntax or StructDeclarationSyntax or MethodDeclarationSyntax { AttributeLists.Count: > 0 };
return syntaxNode is MethodDeclarationSyntax { AttributeLists.Count: > 0 };
}, PopulateMethodTargets)
.SelectMany((method, token) =>
{

Loading…
Cancel
Save